public class ContentNegotiationEMIResolver extends AbstractCachableExtensionMappingInstanceResolver
Constructor and Description |
---|
ContentNegotiationEMIResolver() |
Modifier and Type | Method and Description |
---|---|
protected String |
doGetExtension(javax.servlet.http.HttpServletRequest request) |
List<org.springframework.http.MediaType> |
getContentTypes(javax.servlet.http.HttpServletRequest request)
根据request获取相关的mediatype列表
|
MediaTypeRespository |
getMediaTypeRespository() |
String |
getParameterName() |
boolean |
isFavorParameter() |
boolean |
isIgnoreAcceptHeader() |
void |
setFavorParameter(boolean favorParameter) |
void |
setIgnoreAcceptHeader(boolean ignoreAcceptHeader) |
void |
setMediaTypeRespository(MediaTypeRespository mediaTypeRespository) |
void |
setParameterName(String parameterName) |
void |
setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper) |
addExtensionMapping, get, get, getDefaultExtension, getExtesionMapping, getUrlPathHelper, setDefaultContentExtension, supportExtension
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper)
setUrlPathHelper
in class AbstractCachableExtensionMappingInstanceResolver
public MediaTypeRespository getMediaTypeRespository()
public void setMediaTypeRespository(MediaTypeRespository mediaTypeRespository)
public boolean isIgnoreAcceptHeader()
public void setIgnoreAcceptHeader(boolean ignoreAcceptHeader)
public boolean isFavorParameter()
public void setFavorParameter(boolean favorParameter)
public String getParameterName()
public void setParameterName(String parameterName)
protected String doGetExtension(javax.servlet.http.HttpServletRequest request)
doGetExtension
in class AbstractCachableExtensionMappingInstanceResolver
public List<org.springframework.http.MediaType> getContentTypes(javax.servlet.http.HttpServletRequest request)
ContentNegotiationResolver
Copyright © 2006–2018 TinyGroup. All rights reserved.