org.broadleafcommerce.cms.web.file
Class StaticAssetViewController
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
org.broadleafcommerce.cms.web.file.StaticAssetViewController
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller
public class StaticAssetViewController
- extends org.springframework.web.servlet.mvc.AbstractController
Created by jfischer
| Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
METHOD_GET, METHOD_HEAD, METHOD_POST |
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
| Methods inherited from class org.springframework.web.servlet.mvc.AbstractController |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession |
| Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
staticAssetStorageService
protected StaticAssetStorageService staticAssetStorageService
sandBoxService
protected SandBoxService sandBoxService
StaticAssetViewController
public StaticAssetViewController()
convertParameterMap
protected Map<String,String> convertParameterMap(Map<String,String[]> parameterMap)
handleRequestInternal
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Process the static asset request by determining the asset name.
Checks the current sandbox for a matching asset. If not found, checks the
production sandbox.
The view portion will be handled by a component with the name "blStaticAssetView" This is
intended to be the specific class StaticAssetView.
- Specified by:
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractController
- Throws:
Exception- See Also:
StaticAssetView,
AbstractController.handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
getAssetServerUrlPrefix
public String getAssetServerUrlPrefix()
setAssetServerUrlPrefix
public void setAssetServerUrlPrefix(String assetServerUrlPrefix)
getViewResolverName
public String getViewResolverName()
setViewResolverName
public void setViewResolverName(String viewResolverName)
Copyright © 2012. All Rights Reserved.