com.bstek.dorado.web.resolver
public abstract class AbstractWebFileResolver extends AbstractResolver implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
AbstractWebFileResolver() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected ResourcesWrapper |
createResourcesWrapper(javax.servlet.http.HttpServletRequest request,
DoradoContext context) |
protected org.springframework.web.servlet.ModelAndView |
doHandleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.lang.String |
getContentType(ResourcesWrapper resourcesWrapper) |
protected java.io.OutputStream |
getOutputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResourcesWrapper resourcesWrapper) |
protected java.lang.String |
getResourceCacheKey(javax.servlet.http.HttpServletRequest request) |
protected java.lang.String |
getResourceExtName(java.lang.String path) |
protected ResourcesWrapper |
getResourcesWrapper(javax.servlet.http.HttpServletRequest request,
DoradoContext context) |
protected ResourceTypeManager |
getResourceTypeManager() |
protected java.lang.String |
getUriSuffix(javax.servlet.http.HttpServletRequest request) |
boolean |
isCheckResourceType() |
boolean |
isUseResourcesCache() |
protected void |
outputFile(java.io.OutputStream out,
Resource resource) |
protected void |
outputResourcesWrapper(ResourcesWrapper resourcesWrapper,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setCheckResourceType(boolean checkResourceType) |
void |
setUseResourcesCache(boolean useResourcesCache) |
protected boolean |
shouldCompress(ResourcesWrapper resourcesWrapper) |
getRelativeRequestURI, handleRequestInternal
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected ResourceTypeManager getResourceTypeManager()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected java.lang.String getResourceExtName(java.lang.String path)
protected java.lang.String getUriSuffix(javax.servlet.http.HttpServletRequest request)
protected boolean shouldCompress(ResourcesWrapper resourcesWrapper)
public boolean isUseResourcesCache()
public void setUseResourcesCache(boolean useResourcesCache)
public boolean isCheckResourceType()
public void setCheckResourceType(boolean checkResourceType)
protected java.lang.String getContentType(ResourcesWrapper resourcesWrapper)
protected java.io.OutputStream getOutputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ResourcesWrapper resourcesWrapper) throws java.io.IOException
java.io.IOException
protected void outputFile(java.io.OutputStream out, Resource resource) throws java.io.IOException
java.io.IOException
protected ResourcesWrapper getResourcesWrapper(javax.servlet.http.HttpServletRequest request, DoradoContext context) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getResourceCacheKey(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
protected ResourcesWrapper createResourcesWrapper(javax.servlet.http.HttpServletRequest request, DoradoContext context) throws java.lang.Exception
java.lang.Exception
protected org.springframework.web.servlet.ModelAndView doHandleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
doHandleRequest
in class WebContextSupportedController
java.lang.Exception
protected void outputResourcesWrapper(ResourcesWrapper resourcesWrapper, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.