Interface RequestPostProcessor
public interface RequestPostProcessor
Extension point for applications or 3rd party libraries that wish to further initialize aMockHttpServletRequest
instance after it has been built byMockHttpServletRequestBuilder
or its subclassMockMultipartHttpServletRequestBuilder
.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MockHttpServletRequest
postProcessRequest(MockHttpServletRequest request)
Post-process the givenMockHttpServletRequest
after its creation and initialization through aMockHttpServletRequestBuilder
.
Method Detail
postProcessRequest
MockHttpServletRequest postProcessRequest(MockHttpServletRequest request)
Post-process the givenMockHttpServletRequest
after 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