Uses of Interface
org.springframework.web.accept.ContentNegotiationStrategy
Package
Description
This package contains classes used to determine the requested the media types in a request.
Annotation-based setup for Spring MVC.
-
Uses of ContentNegotiationStrategy in org.springframework.web.accept
Modifier and TypeClassDescriptionclass
Base class forContentNegotiationStrategy
implementations with the steps to resolve a request to media types.class
Central class to determine requested media types for a request.class
AContentNegotiationStrategy
that returns a fixed content type.class
AContentNegotiationStrategy
that checks the 'Accept' request header.class
Strategy that resolves the requested content type from a query parameter.class
Deprecated.as of 5.2.4.class
Deprecated.as of 5.2.4.Modifier and TypeMethodDescription<T extends ContentNegotiationStrategy>
TContentNegotiationManager.getStrategy
(Class<T> strategyType) Find aContentNegotiationStrategy
of the given type.Modifier and TypeMethodDescriptionContentNegotiationManager.getStrategies()
Return the configured content negotiation strategies.Modifier and TypeMethodDescriptionvoid
ContentNegotiationManagerFactoryBean.setDefaultContentTypeStrategy
(ContentNegotiationStrategy strategy) Set a customContentNegotiationStrategy
to use to determine the content type to use when no content type is requested.Modifier and TypeMethodDescriptionvoid
ContentNegotiationManagerFactoryBean.setStrategies
(List<ContentNegotiationStrategy> strategies) Set the exact list of strategies to use.ModifierConstructorDescriptionContentNegotiationManager
(ContentNegotiationStrategy... strategies) Create an instance with the given list ofContentNegotiationStrategy
strategies each of which may also be an instance ofMediaTypeFileExtensionResolver
.ModifierConstructorDescriptionA collection-based alternative toContentNegotiationManager(ContentNegotiationStrategy...)
. -
Uses of ContentNegotiationStrategy in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionContentNegotiationConfigurer.defaultContentTypeStrategy
(ContentNegotiationStrategy defaultStrategy) Set a customContentNegotiationStrategy
to use to determine the content type to use when no content type is requested.Modifier and TypeMethodDescriptionvoid
ContentNegotiationConfigurer.strategies
(List<ContentNegotiationStrategy> strategies) Set the exact list of strategies to use.