1 16 17 package org.apache.velocity.tools.view.context; 18 19 import org.apache.velocity.context.Context; 20 21 import javax.servlet.http.HttpServletRequest ; 22 import javax.servlet.http.HttpServletResponse ; 23 import javax.servlet.ServletContext ; 24 25 26 40 public interface ViewContext 41 { 42 43 public static final String REQUEST = "request"; 44 45 46 public static final String RESPONSE = "response"; 47 48 49 public static final String SESSION = "session"; 50 51 52 public static final String APPLICATION = "application"; 53 54 55 public static final String XHTML = "XHTML"; 56 57 58 61 public HttpServletRequest getRequest(); 62 63 64 67 public HttpServletResponse getResponse(); 68 69 70 73 public ServletContext getServletContext(); 74 75 76 83 public Object getAttribute(String key); 84 85 86 89 public Context getVelocityContext(); 90 91 } 92 | Popular Tags |