public class StaticAssetViewController
extends org.springframework.web.servlet.mvc.AbstractController
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowUnnamedImageManipulation |
protected String |
assetServerUrlPrefix |
protected NamedOperationManager |
namedOperationManager |
protected BroadleafSandBoxResolver |
sandboxResolver |
protected BroadleafSiteResolver |
siteResolver |
protected StaticAssetStorageService |
staticAssetStorageService |
protected String |
viewResolverName |
Constructor and Description |
---|
StaticAssetViewController() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
convertParameterMap(Map<String,String[]> parameterMap)
Converts the given request parameter map into a single key-value map.
|
String |
getAssetServerUrlPrefix() |
String |
getViewResolverName() |
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the static asset request by determining the asset name.
|
protected void |
init() |
protected boolean |
isAllowedUrlParameter(String parameter) |
protected String |
removeAssetPrefix(String requestURI) |
void |
setAssetServerUrlPrefix(String assetServerUrlPrefix) |
void |
setViewResolverName(String viewResolverName) |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected String assetServerUrlPrefix
protected String viewResolverName
protected StaticAssetStorageService staticAssetStorageService
protected BroadleafSiteResolver siteResolver
protected BroadleafSandBoxResolver sandboxResolver
protected NamedOperationManager namedOperationManager
@Value(value="${asset.server.allow.unnamed.image.manipulation:true}") protected boolean allowUnnamedImageManipulation
@PostConstruct protected void init()
protected Map<String,String> convertParameterMap(Map<String,String[]> parameterMap)
allowUnnamedImageManipulation
that
appear in NamedOperationManager.getNamedOperationComponents()
parameterMap
- protected boolean isAllowedUrlParameter(String parameter)
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
handleRequestInternal
in class org.springframework.web.servlet.mvc.AbstractController
Exception
StaticAssetView
,
AbstractController.handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public String getAssetServerUrlPrefix()
public void setAssetServerUrlPrefix(String assetServerUrlPrefix)
public String getViewResolverName()
public void setViewResolverName(String viewResolverName)
Copyright © 2014. All rights reserved.