Interface ContentModifier

All Known Implementing Classes:
PrettyPrintingContentModifier

public interface ContentModifier
A ContentModifier modifies the content of an OperationRequest or OperationResponse during the preprocessing that is performed prior to documentation generation.
Author:
Andy Wilkinson
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    modifyContent(byte[] originalContent, org.springframework.http.MediaType contentType)
    Returns modified content based on the given originalContent.
  • Method Details

    • modifyContent

      byte[] modifyContent(byte[] originalContent, org.springframework.http.MediaType contentType)
      Returns modified content based on the given originalContent.
      Parameters:
      originalContent - the original content
      contentType - the type of the original content, may be null
      Returns:
      the modified content