Uses of Interface
org.springframework.web.accept.ContentNegotiationStrategy
Packages that use 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
Classes in org.springframework.web.accept that implement ContentNegotiationStrategyModifier 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.Methods in org.springframework.web.accept with type parameters of type ContentNegotiationStrategyModifier and TypeMethodDescription<T extends ContentNegotiationStrategy>
TContentNegotiationManager.getStrategy
(Class<T> strategyType) Find aContentNegotiationStrategy
of the given type.Methods in org.springframework.web.accept that return types with arguments of type ContentNegotiationStrategyModifier and TypeMethodDescriptionContentNegotiationManager.getStrategies()
Return the configured content negotiation strategies.Methods in org.springframework.web.accept with parameters of type ContentNegotiationStrategyModifier and TypeMethodDescriptionvoid
ContentNegotiationManagerFactoryBean.setDefaultContentTypeStrategy
(ContentNegotiationStrategy strategy) Set a customContentNegotiationStrategy
to use to determine the content type to use when no content type is requested.Method parameters in org.springframework.web.accept with type arguments of type ContentNegotiationStrategyModifier and TypeMethodDescriptionvoid
ContentNegotiationManagerFactoryBean.setStrategies
(List<ContentNegotiationStrategy> strategies) Set the exact list of strategies to use.Constructors in org.springframework.web.accept with parameters of type ContentNegotiationStrategyModifierConstructorDescriptionContentNegotiationManager
(ContentNegotiationStrategy... strategies) Create an instance with the given list ofContentNegotiationStrategy
strategies each of which may also be an instance ofMediaTypeFileExtensionResolver
.Constructor parameters in org.springframework.web.accept with type arguments of type ContentNegotiationStrategyModifierConstructorDescriptionA collection-based alternative toContentNegotiationManager(ContentNegotiationStrategy...)
. -
Uses of ContentNegotiationStrategy in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type ContentNegotiationStrategyModifier and TypeMethodDescriptionContentNegotiationConfigurer.defaultContentTypeStrategy
(ContentNegotiationStrategy defaultStrategy) Set a customContentNegotiationStrategy
to use to determine the content type to use when no content type is requested.Method parameters in org.springframework.web.servlet.config.annotation with type arguments of type ContentNegotiationStrategyModifier and TypeMethodDescriptionvoid
ContentNegotiationConfigurer.strategies
(List<ContentNegotiationStrategy> strategies) Set the exact list of strategies to use.