Interface RequestPostProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Extension point for applications or 3rd party libraries that wish to further
initialize a
MockHttpServletRequest instance after it has been built
by MockHttpServletRequestBuilder or its subclass
MockMultipartHttpServletRequestBuilder.
Implementations of this interface can be provided to
MockHttpServletRequestBuilder.with(RequestPostProcessor) at the time
when a request is about to be constructed.
- Since:
- 3.2
- Author:
- Rossen Stoyanchev, Rob Winch
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessRequest(MockHttpServletRequest request) Post-process the givenMockHttpServletRequestafter its creation and initialization through aMockHttpServletRequestBuilder.
-
Method Details
-
postProcessRequest
Post-process the givenMockHttpServletRequestafter its creation and initialization through aMockHttpServletRequestBuilder.- Parameters:
request- the request to initialize- Returns:
- the request to use, either the one passed in or a wrapped one
-