MockRequest |
MockRequest.addCookie(Cookie cookie) |
Add a new cookie.
|
MockRequest |
MockRequest.addHeader(String name,
String value) |
Add a header to the request.
|
MockRequest |
MockRequest.removeParameter(String name) |
Remove the specified parameter.
|
MockRequest |
MockRequest.setContentType(String contentType) |
Set the request content type.
|
MockRequest |
MockRequest.setContextPath(String contextPath) |
Set the portion of the request URI that indicates the context of the
request.
|
MockRequest |
MockRequest.setHeader(String name,
String value) |
Set request header value.
|
MockRequest |
MockRequest.setHeader(String name,
String... values) |
Set request header values.
|
MockRequest |
MockRequest.setHttpSession(HttpSession session) |
Set the request's session instance.
|
MockRequest |
MockRequest.setMethod(String method) |
Set the method.
|
MockRequest |
MockRequest.setParameter(String name,
String value) |
Set a parameter.
|
MockRequest |
MockRequest.setParameter(String name,
String[] values) |
Set the specified parameter name to the array of strings.
|
MockRequest |
MockRequest.setParameters(Map<String,Object> parameters) |
Sets a map of parameters.
|
MockRequest |
MockRequest.setPathInfo(String path) |
Set the path that this request is supposed to be serving.
|
MockRequest |
MockRequest.setScheme(String scheme) |
Set the request's scheme, for example http, https, or ftp.
|
MockRequest |
MockRequest.setServerName(String serverName) |
Sets the host server name to which the request was sent.
|
MockRequest |
MockRequest.setServerPort(int serverPort) |
Set the port number to which the request was sent.
|
MockRequest |
MockRequest.setServletContext(ServletContext servletContext) |
Set the request's servletContext instance.
|
MockRequest |
MockRequest.setServletPath(String servletPath) |
Set the string containing the name or path of the servlet being called.
|
MockRequest |
MockRequest.setSession(HttpSession session) |
Set the current HttpSession associated with this request.
|
MockRequest |
MockRequest.setUseMultiPartContentType(boolean useMultiPartContentType) |
True will force Request to generate multiPart ContentType and ContentLength.
|
MockRequest |
MockRequest.setUserPrincipal(Principal userPrincipal) |
Set the user principal.
|