Example usage for org.springframework.web.accept ContentNegotiationStrategy interface-usage

List of usage examples for org.springframework.web.accept ContentNegotiationStrategy interface-usage

Introduction

In this page you can find the example usage for org.springframework.web.accept ContentNegotiationStrategy interface-usage.

Usage

From source file org.springframework.web.accept.FixedContentNegotiationStrategy.java

/**
 * A {@code ContentNegotiationStrategy} that returns a fixed content type.
 *
 * @author Rossen Stoyanchev
 * @since 3.2
 */

From source file org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.java

/**
 * Base class for {@code ContentNegotiationStrategy} implementations with the
 * steps to resolve a request to media types.
 *
 * <p>First a key (e.g. "json", "pdf") must be extracted from the request (e.g.
 * file extension, query param). The key must then be resolved to media type(s)