public abstract class AbstractCachableExtensionMappingInstanceResolver extends Object implements ExtensionMappingInstanceResolver
Constructor and Description |
---|
AbstractCachableExtensionMappingInstanceResolver() |
Modifier and Type | Method and Description |
---|---|
void |
addExtensionMapping(ExtensionMappingInstance mappingInstance) |
protected abstract String |
doGetExtension(javax.servlet.http.HttpServletRequest request) |
ExtensionMappingInstance |
get(javax.servlet.http.HttpServletRequest request)
通过request获取url的扩展名对应的MVC组件抽象
|
ExtensionMappingInstance |
get(String ext) |
protected String |
getDefaultExtension() |
ExtensionMappingInstance |
getExtesionMapping(String extension)
根据extension 取得
ExtensionMappingInstance 对象。 |
org.springframework.web.util.UrlPathHelper |
getUrlPathHelper() |
void |
setDefaultContentExtension(String defaultContentExtension) |
void |
setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper) |
boolean |
supportExtension(String extension)
判断是否支持某种Extension。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentTypes
public AbstractCachableExtensionMappingInstanceResolver()
public void setDefaultContentExtension(String defaultContentExtension)
public org.springframework.web.util.UrlPathHelper getUrlPathHelper()
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper)
public ExtensionMappingInstance get(javax.servlet.http.HttpServletRequest request)
ExtensionMappingInstanceResolver
get
in interface ExtensionMappingInstanceResolver
public ExtensionMappingInstance get(String ext)
protected abstract String doGetExtension(javax.servlet.http.HttpServletRequest request)
protected String getDefaultExtension()
public void addExtensionMapping(ExtensionMappingInstance mappingInstance)
public ExtensionMappingInstance getExtesionMapping(String extension)
ExtensionMappingInstance
对象。extension
- public boolean supportExtension(String extension)
extension
- Copyright © 2006–2018 TinyGroup. All rights reserved.