Home » commons-chain-1.2-src » org.apache.commons » chain » web » servlet » [javadoc | source]
org.apache.commons.chain.web.servlet
public class: MockHttpServletRequest [javadoc | source]
java.lang.Object
   org.apache.commons.chain.web.servlet.MockHttpServletRequest

All Implemented Interfaces:
    HttpServletRequest

Field Summary
protected  HashMap attributes     
protected  String contextPath     
protected  HashMap headers     
protected  Cookie[] cookies     
protected  Locale locale     
protected  HashMap parameters     
protected  String pathInfo     
protected  Principal principal     
protected  String queryString     
protected  String servletPath     
protected  HttpSession session     
Constructor:
 public MockHttpServletRequest() 
 public MockHttpServletRequest(HttpSession session) 
 public MockHttpServletRequest(String contextPath,
    String servletPath,
    String pathInfo,
    String queryString) 
 public MockHttpServletRequest(String contextPath,
    String servletPath,
    String pathInfo,
    String queryString,
    HttpSession session) 
Method from org.apache.commons.chain.web.servlet.MockHttpServletRequest Summary:
addCookie,   addCookie,   addHeader,   addParameter,   getAttribute,   getAttributeNames,   getAuthType,   getCharacterEncoding,   getContentLength,   getContentType,   getContextPath,   getCookies,   getDateHeader,   getHeader,   getHeaderNames,   getHeaders,   getInputStream,   getIntHeader,   getLocalAddr,   getLocalName,   getLocalPort,   getLocale,   getLocales,   getMethod,   getParameter,   getParameterMap,   getParameterNames,   getParameterValues,   getPathInfo,   getPathTranslated,   getProtocol,   getQueryString,   getReader,   getRealPath,   getRemoteAddr,   getRemoteHost,   getRemotePort,   getRemoteUser,   getRequestDispatcher,   getRequestURI,   getRequestURL,   getRequestedSessionId,   getScheme,   getServerName,   getServerPort,   getServletPath,   getSession,   getSession,   getUserPrincipal,   isRequestedSessionIdFromCookie,   isRequestedSessionIdFromURL,   isRequestedSessionIdFromUrl,   isRequestedSessionIdValid,   isSecure,   isUserInRole,   removeAttribute,   setAttribute,   setCharacterEncoding,   setHttpSession,   setLocale,   setPathElements,   setUserPrincipal
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.web.servlet.MockHttpServletRequest Detail:
 public  void addCookie(Cookie cookie) 
 public  void addCookie(String name,
    String value) 
 public  void addHeader(String name,
    String value) 
 public  void addParameter(String name,
    String value) 
 public Object getAttribute(String name) 
 public Enumeration getAttributeNames() 
 public String getAuthType() 
 public String getCharacterEncoding() 
 public int getContentLength() 
 public String getContentType() 
 public String getContextPath() 
 public Cookie[] getCookies() 
 public long getDateHeader(String name) 
 public String getHeader(String name) 
 public Enumeration getHeaderNames() 
 public Enumeration getHeaders(String name) 
 public ServletInputStream getInputStream() 
 public int getIntHeader(String name) 
 public String getLocalAddr() 
 public String getLocalName() 
 public int getLocalPort() 
 public Locale getLocale() 
 public Enumeration getLocales() 
 public String getMethod() 
 public String getParameter(String name) 
 public Map getParameterMap() 
 public Enumeration getParameterNames() 
 public String[] getParameterValues(String name) 
 public String getPathInfo() 
 public String getPathTranslated() 
 public String getProtocol() 
 public String getQueryString() 
 public BufferedReader getReader() 
 public String getRealPath(String path) 
 public String getRemoteAddr() 
 public String getRemoteHost() 
 public int getRemotePort() 
 public String getRemoteUser() 
 public RequestDispatcher getRequestDispatcher(String path) 
 public String getRequestURI() 
 public StringBuffer getRequestURL() 
 public String getRequestedSessionId() 
 public String getScheme() 
 public String getServerName() 
 public int getServerPort() 
 public String getServletPath() 
 public HttpSession getSession() 
 public HttpSession getSession(boolean create) 
 public Principal getUserPrincipal() 
 public boolean isRequestedSessionIdFromCookie() 
 public boolean isRequestedSessionIdFromURL() 
 public boolean isRequestedSessionIdFromUrl() 
 public boolean isRequestedSessionIdValid() 
 public boolean isSecure() 
 public boolean isUserInRole(String role) 
 public  void removeAttribute(String name) 
 public  void setAttribute(String name,
    Object value) 
 public  void setCharacterEncoding(String name) 
 public  void setHttpSession(HttpSession session) 
 public  void setLocale(Locale locale) 
 public  void setPathElements(String contextPath,
    String servletPath,
    String pathInfo,
    String queryString) 
 public  void setUserPrincipal(Principal principal)