Example usage for org.springframework.web.accept AbstractMappingContentNegotiationStrategy subclass-usage

List of usage examples for org.springframework.web.accept AbstractMappingContentNegotiationStrategy subclass-usage

Introduction

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

Usage

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

/**
 * A ContentNegotiationStrategy that uses a request parameter to determine what
 * media types are requested. The default parameter name is {@code format}.
 * Its value is used to look up the media type in the map given to the constructor.
 *
 * @author Rossen Stoyanchev

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

/**
 * A ContentNegotiationStrategy that uses the path extension of the URL to
 * determine what media types are requested. The path extension is first looked
 * up in the map of media types provided to the constructor. If that fails, the
 * Java Activation framework is used as a fallback mechanism.
 *