public interface ResponsePostProcessor
ResponsePostProcessor
is used to modify the response received from a MockMvc
call prior to the response being documented.Modifier and Type | Method and Description |
---|---|
MockHttpServletResponse |
postProcess(MockHttpServletResponse response)
Post-processes the given
response , returning a, possibly new,
MockHttpServletResponse that should now be used. |
MockHttpServletResponse postProcess(MockHttpServletResponse response) throws Exception
response
, returning a, possibly new,
MockHttpServletResponse
that should now be used.response
- The response to post-processException
- if a failure occurs during the post-processing