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 TypeClassDescriptionclassBase class forContentNegotiationStrategyimplementations with the steps to resolve a request to media types.classCentral class to determine requested media types for a request.classAContentNegotiationStrategythat returns a fixed content type.classAContentNegotiationStrategythat checks the 'Accept' request header.classStrategy that resolves the requested content type from a query parameter.classDeprecated.as of 5.2.4.classDeprecated.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 aContentNegotiationStrategyof 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 TypeMethodDescriptionvoidContentNegotiationManagerFactoryBean.setDefaultContentTypeStrategy(ContentNegotiationStrategy strategy) Set a customContentNegotiationStrategyto 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 TypeMethodDescriptionvoidContentNegotiationManagerFactoryBean.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 ofContentNegotiationStrategystrategies 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 customContentNegotiationStrategyto 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 TypeMethodDescriptionvoidContentNegotiationConfigurer.strategies(List<ContentNegotiationStrategy> strategies) Set the exact list of strategies to use.