Example usage for Java org.springframework.mock.web.test MockHttpServletRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
MockHttpServletRequest() Create a new MockHttpServletRequest with a default MockServletContext . |
void | addHeader(String name, Object value) Add an HTTP header entry for the given name. |
void | addParameter(String name, @Nullable String value) Add a single value for the specified HTTP parameter. |
void | addParameter(String name, String... values) Add an array of values for the specified HTTP parameter. |
void | setContentType(@Nullable String contentType) |
void | setMethod(@Nullable String method) |