public class PrettyPrintingContentModifier extends java.lang.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)
ContentModifieroriginalContent.modifyContent in interface ContentModifieroriginalContent - the original contentcontentType - the type of the original content, may be null