RequestPostProcessor (Spring Framework 3.2.1.RELEASE API)
Date: 2013-01-24

org.springframework.test.web.servlet.request

## Interface RequestPostProcessor

-     public interface RequestPostProcessor

  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 sub-class `MockMultipartHttpServletRequestBuilder`.

  Implementations of this interface can be provided to `MockHttpServletRequestBuilder.with(RequestPostProcessor)` at the time when a request is about to be performed.

  Since:
    3.2
  Author:
    Rossen Stoyanchev, Rob Winch

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MockHttpServletRequest` | `postProcessRequest(MockHttpServletRequest request)` Post-process the given `MockHttpServletRequest` after its creation and initialization through a `MockHttpServletRequestBuilder`.

- - ### Method Detail

    - #### postProcessRequest

          MockHttpServletRequest postProcessRequest(MockHttpServletRequest request)

      Post-process the given `MockHttpServletRequest` after its creation and initialization through a `MockHttpServletRequestBuilder`.
      Parameters:
        `request` - the request to initialize
      Returns:
        the request to use, either the one passed in or a wrapped one;