Class PrettyPrintingContentModifier
java.lang.Object
org.springframework.restdocs.operation.preprocess.PrettyPrintingContentModifier
- All Implemented Interfaces:
ContentModifier
A
ContentModifier that modifies the content by pretty printing it.- Author:
- Andy Wilkinson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]modifyContent(byte[] originalContent, org.springframework.http.MediaType contentType) Returns modified content based on the givenoriginalContent.
-
Constructor Details
-
PrettyPrintingContentModifier
public PrettyPrintingContentModifier()
-
-
Method Details
-
modifyContent
public byte[] modifyContent(byte[] originalContent, org.springframework.http.MediaType contentType) Description copied from interface:ContentModifierReturns modified content based on the givenoriginalContent.- Specified by:
modifyContentin interfaceContentModifier- Parameters:
originalContent- the original contentcontentType- the type of the original content, may benull- Returns:
- the modified content
-