public class PrettyPrintingContentModifier extends Object implements ContentModifier
ContentModifier
that modifies the content by pretty printing it.Constructor and Description |
---|
PrettyPrintingContentModifier() |
Modifier and Type | Method and Description |
---|---|
byte[] |
modifyContent(byte[] originalContent,
org.springframework.http.MediaType contentType)
Returns modified content based on the given
originalContent . |
public byte[] modifyContent(byte[] originalContent, org.springframework.http.MediaType contentType)
ContentModifier
originalContent
.modifyContent
in interface ContentModifier
originalContent
- the original contentcontentType
- the type of the original content, may be null