Package | Description |
---|---|
org.tinygroup.springmvc.negotiation | |
org.tinygroup.springmvc.negotiation.impl |
Modifier and Type | Class and Description |
---|---|
class |
ContentNegotiationManager
内容协商相关配置管理器
|
Modifier and Type | Method and Description |
---|---|
void |
ContentNegotiationManagerFactoryBean.setDefaultContentTypeStrategy(ContentNegotiationStrategy defaultStrategy)
Configure a custom
ContentNegotiationStrategy to use to determine
the default content type to use when no content type was requested. |
Constructor and Description |
---|
ContentNegotiationManager(ContentNegotiationStrategy... strategies)
Create an instance with the given ContentNegotiationStrategy instances.
|
Constructor and Description |
---|
ContentNegotiationManager(Collection<ContentNegotiationStrategy> strategies)
Create an instance with the given ContentNegotiationStrategy instances.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMappingContentNegotiationStrategy
A base class for ContentNegotiationStrategy types that maintain a map with keys
such as "json" and media types such as "application/json".
|
class |
FixedContentNegotiationStrategy
返回固定的MediaType
|
class |
HeaderContentNegotiationStrategy
A
ContentNegotiationStrategy that checks the 'Accept' request header. |
class |
ParameterContentNegotiationStrategy
A ContentNegotiationStrategy that uses a request parameter to determine what
media types are requested.
|
class |
PathExtensionContentNegotiationStrategy
A ContentNegotiationStrategy that uses the path extension of the URL to
determine what media types are requested.
|
class |
ServletPathExtensionContentNegotiationStrategy
Extends
PathExtensionContentNegotiationStrategy that also uses
ServletContext.getMimeType(String) to resolve file extensions. |
Copyright © 2006–2018 TinyGroup. All rights reserved.