- contentType
Set the 'Content-Type' header of the request.
- content
Set the request body.
- param
Add a request parameter to the MockHttpServletRequest.If called more than once,
new values get added
- accept
Set the 'Accept' header to the given media type(s).
- header
Add a header to the request. Values are always added.
- with
An extension point for further initialization of MockHttpServletRequestin ways
not built directly in
- requestAttr
Set a request attribute.
- buildRequest
Build a MockHttpServletRequest.
- contextPath
Specify the portion of the requestURI that represents the context path. The
context path, if specifi
- principal
Set the principal of the request.
- flashAttr
Set an "input" flash attribute.
- headers
Add all headers to the request. Values are always added.