| java.lang.Object org.apache.struts.mock.MockHttpServletRequest
MockHttpServletRequest | public class MockHttpServletRequest implements HttpServletRequest(Code) | | Mock HttpServletRequest object for low-level unit tests
of Struts controller components. Coarser grained tests should be
implemented in terms of the Cactus framework, instead of the mock object
classes.
WARNING - Only the minimal set of methods needed to
create unit tests is provided, plus additional methods to configure this
object as necessary. Methods for unsupported operations will throw
UnsupportedOperationException .
WARNING - Because unit tests operate in a single
threaded environment, no synchronization is performed.
version: $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $ |
attributes | protected HashMap attributes(Code) | | The set of request attributes.
|
contentType | protected String contentType(Code) | | The Content Type for this request.
|
contextPath | protected String contextPath(Code) | | The context path for this request.
|
locale | protected Locale locale(Code) | | The preferred locale for this request.
|
method | protected String method(Code) | | The HTTP request method.
|
parameters | protected HashMap parameters(Code) | | The set of arrays of parameter values, keyed by parameter name.
|
pathInfo | protected String pathInfo(Code) | | The extra path information for this request. v *
|
principal | protected Principal principal(Code) | | The authenticated user for this request.
|
queryString | protected String queryString(Code) | | The query string for this request.
|
servletPath | protected String servletPath(Code) | | The servlet path for this request.
|
session | protected HttpSession session(Code) | | The HttpSession with which we are associated.
|
MockHttpServletRequest | public MockHttpServletRequest()(Code) | | |
getCharacterEncoding | public String getCharacterEncoding()(Code) | | |
getContentLength | public int getContentLength()(Code) | | |
getParameterMap | public Map getParameterMap()(Code) | | |
getRequestedSessionId | public String getRequestedSessionId()(Code) | | |
getServerPort | public int getServerPort()(Code) | | |
isRequestedSessionIdFromCookie | public boolean isRequestedSessionIdFromCookie()(Code) | | |
isRequestedSessionIdFromURL | public boolean isRequestedSessionIdFromURL()(Code) | | |
isRequestedSessionIdFromUrl | public boolean isRequestedSessionIdFromUrl()(Code) | | |
isRequestedSessionIdValid | public boolean isRequestedSessionIdValid()(Code) | | |
isSecure | public boolean isSecure()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
setCharacterEncoding | public void setCharacterEncoding(String name)(Code) | | |
setContentType | public void setContentType(String contentType)(Code) | | |
|
|