Example usage for org.springframework.restdocs.operation.preprocess ContentModifier interface-usage

List of usage examples for org.springframework.restdocs.operation.preprocess ContentModifier interface-usage

Introduction

In this page you can find the example usage for org.springframework.restdocs.operation.preprocess ContentModifier interface-usage.

Usage

From source file capital.scalable.restdocs.response.JsonContentModifier.java

public abstract class JsonContentModifier implements ContentModifier {

    private ObjectMapper objectMapper;

    public JsonContentModifier(ObjectMapper objectMapper) {
        this.objectMapper = objectMapper;

From source file capital.scalable.restdocs.response.BinaryReplacementContentModifier.java

public class BinaryReplacementContentModifier implements ContentModifier {

    public static final Set<MediaType> BINARY_ENUM_TYPES = new HashSet<>();

    static {
        BINARY_ENUM_TYPES.add(MediaType.valueOf("application/pdf"));

From source file org.springframework.restdocs.operation.preprocess.PrettyPrintingContentModifier.java

/**
 * A {@link ContentModifier} that modifies the content by pretty printing it.
 *
 * @author Andy Wilkinson
 */
public class PrettyPrintingContentModifier implements ContentModifier {