1 33 package net.myvietnam.mvncore.web; 34 35 import java.util.*; 36 37 import javax.servlet.http.HttpServletRequest ; 38 39 public interface GenericRequest { 40 41 public HttpServletRequest getServletRequest(); 42 43 public Object getPortletRequest(); 44 45 public boolean isServletRequest(); 46 47 public boolean isPortletRequest(); 48 49 51 public Object getAttribute(String name); 52 53 public void setAttribute(String name, Object value); 54 55 public Enumeration getAttributeNames(); 56 57 public String getAuthType(); 58 59 public String getContextPath(); 60 61 public Locale getLocale(); 62 63 public Enumeration getLocales(); 64 65 public String getParameter(String name); 66 67 public Map getParameterMap(); 68 69 public Enumeration getParameterNames(); 70 71 public String [] getParameterValues(String name); 72 73 public String getSessionId(); 74 75 public String getRemoteUser(); 76 77 public String getRemoteAddr(); 78 79 public String getRealPath(String path); 81 82 public void setSessionAttribute(String name, Object value); 84 85 public Object getSessionAttribute(String name); 86 } 87 | Popular Tags |