Interface SmartRequestBuilder
- All Superinterfaces:
RequestBuilder
- All Known Subinterfaces:
ConfigurableSmartRequestBuilder<B>
- All Known Implementing Classes:
MockHttpServletRequestBuilder
,MockMultipartHttpServletRequestBuilder
Extended variant of a
RequestBuilder
that applies its
org.springframework.test.web.servlet.request.RequestPostProcessors
as a separate step from the RequestBuilder.buildRequest(jakarta.servlet.ServletContext)
method.- Since:
- 4.1
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessRequest
(MockHttpServletRequest request) Apply request post-processing.Methods inherited from interface org.springframework.test.web.servlet.RequestBuilder
buildRequest
-
Method Details
-
postProcessRequest
Apply request post-processing. Typically, that means invoking one or moreorg.springframework.test.web.servlet.request.RequestPostProcessors
.- Parameters:
request
- the request to initialize- Returns:
- the request to use, either the one passed in or a wrapped one
-