public abstract class ContentModifyingReponsePostProcessor extends Object implements ResponsePostProcessor
ResponsePostProcessors that modify the
content of the response.| Constructor and Description |
|---|
ContentModifyingReponsePostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
modifyContent(String originalContent)
Returns a modified version of the given
originalContent |
MockHttpServletResponse |
postProcess(MockHttpServletResponse response)
Post-processes the given
response, returning a, possibly new,
MockHttpServletResponse that should now be used. |
public ContentModifyingReponsePostProcessor()
public MockHttpServletResponse postProcess(MockHttpServletResponse response) throws Exception
ResponsePostProcessorresponse, returning a, possibly new,
MockHttpServletResponse that should now be used.postProcess in interface ResponsePostProcessorresponse - The response to post-processException - if a failure occurs during the post-processingprotected abstract String modifyContent(String originalContent) throws Exception
originalContentoriginalContent - the content to modifyException - if a failure occurs while modifying the content