Uses of Class
org.springframework.mock.web.MockHttpServletRequest
Packages that use MockHttpServletRequest Package Description org.springframework.mock.web A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with Spring's Web MVC framework.org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.request Contains built-inRequestBuilder
implementations.org.springframework.test.web.servlet.result Contains built-inResultMatcher
andResultHandler
implementations.Uses of MockHttpServletRequest in org.springframework.mock.web
Subclasses of MockHttpServletRequest in org.springframework.mock.web Modifier and Type Class Description class
MockMultipartHttpServletRequest
Mock implementation of theMultipartHttpServletRequest
interface.Uses of MockHttpServletRequest in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet that return MockHttpServletRequest Modifier and Type Method Description MockHttpServletRequest
RequestBuilder. buildRequest(ServletContext servletContext)
Build the request.MockHttpServletRequest
MvcResult. getRequest()
Return the performed request.MockHttpServletRequest
SmartRequestBuilder. postProcessRequest(MockHttpServletRequest request)
Apply request post processing.Methods in org.springframework.test.web.servlet with parameters of type MockHttpServletRequest Modifier and Type Method Description MockHttpServletRequest
SmartRequestBuilder. postProcessRequest(MockHttpServletRequest request)
Apply request post processing.Uses of MockHttpServletRequest in org.springframework.test.web.servlet.request
Methods in org.springframework.test.web.servlet.request that return MockHttpServletRequest Modifier and Type Method Description MockHttpServletRequest
MockHttpServletRequestBuilder. buildRequest(ServletContext servletContext)
Build aMockHttpServletRequest
.protected MockHttpServletRequest
MockHttpServletRequestBuilder. createServletRequest(ServletContext servletContext)
Create a newMockHttpServletRequest
based on the suppliedServletContext
.protected MockHttpServletRequest
MockMultipartHttpServletRequestBuilder. createServletRequest(ServletContext servletContext)
Create a newMockMultipartHttpServletRequest
based on the suppliedServletContext
and theMockMultipartFiles
added to this builder.MockHttpServletRequest
MockHttpServletRequestBuilder. postProcessRequest(MockHttpServletRequest request)
MockHttpServletRequest
RequestPostProcessor. postProcessRequest(MockHttpServletRequest request)
Post-process the givenMockHttpServletRequest
after its creation and initialization through aMockHttpServletRequestBuilder
.Methods in org.springframework.test.web.servlet.request with parameters of type MockHttpServletRequest Modifier and Type Method Description MockHttpServletRequest
MockHttpServletRequestBuilder. postProcessRequest(MockHttpServletRequest request)
MockHttpServletRequest
RequestPostProcessor. postProcessRequest(MockHttpServletRequest request)
Post-process the givenMockHttpServletRequest
after its creation and initialization through aMockHttpServletRequestBuilder
.Uses of MockHttpServletRequest in org.springframework.test.web.servlet.result
Methods in org.springframework.test.web.servlet.result with parameters of type MockHttpServletRequest Modifier and Type Method Description protected MultiValueMap<String,String>
PrintingResultHandler. getParamsMultiValueMap(MockHttpServletRequest request)
protected HttpHeaders
PrintingResultHandler. getRequestHeaders(MockHttpServletRequest request)
protected Map<String,Object>
PrintingResultHandler. getSessionAttributes(MockHttpServletRequest request)
protected void
PrintingResultHandler. printRequest(MockHttpServletRequest request)
Print the request.