Uses of Interface
org.springframework.web.accept.ContentNegotiationStrategy
Packages that use ContentNegotiationStrategy Package Description org.springframework.web.accept This package contains classes used to determine the requested the media types in a request.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.Uses of ContentNegotiationStrategy in org.springframework.web.accept
Classes in org.springframework.web.accept that implement ContentNegotiationStrategy Modifier and Type Class Description classAbstractMappingContentNegotiationStrategyBase class forContentNegotiationStrategyimplementations with the steps to resolve a request to media types.classContentNegotiationManagerCentral class to determine requested media types for a request.classFixedContentNegotiationStrategyAContentNegotiationStrategythat returns a fixed content type.classHeaderContentNegotiationStrategyAContentNegotiationStrategythat checks the 'Accept' request header.classParameterContentNegotiationStrategyStrategy that resolves the requested content type from a query parameter.classPathExtensionContentNegotiationStrategyDeprecated.as of 5.2.4.classServletPathExtensionContentNegotiationStrategyDeprecated.as of 5.2.4.Methods in org.springframework.web.accept with type parameters of type ContentNegotiationStrategy Modifier and Type Method Description <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 ContentNegotiationStrategy Modifier and Type Method Description List<ContentNegotiationStrategy>ContentNegotiationManager. getStrategies()Return the configured content negotiation strategies.Methods in org.springframework.web.accept with parameters of type ContentNegotiationStrategy Modifier and Type Method Description voidContentNegotiationManagerFactoryBean. 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 ContentNegotiationStrategy Modifier and Type Method Description voidContentNegotiationManagerFactoryBean. setStrategies(List<ContentNegotiationStrategy> strategies)Set the exact list of strategies to use.Constructors in org.springframework.web.accept with parameters of type ContentNegotiationStrategy Constructor Description ContentNegotiationManager(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 ContentNegotiationStrategy Constructor Description ContentNegotiationManager(Collection<ContentNegotiationStrategy> strategies)A 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 ContentNegotiationStrategy Modifier and Type Method Description ContentNegotiationConfigurerContentNegotiationConfigurer. 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 ContentNegotiationStrategy Modifier and Type Method Description voidContentNegotiationConfigurer. strategies(List<ContentNegotiationStrategy> strategies)Set the exact list of strategies to use.