public class StaticAssetViewController
extends org.springframework.web.servlet.mvc.AbstractController
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
appCtx |
protected String |
assetServerUrlPrefix |
protected org.springframework.core.env.Environment |
env |
protected NamedOperationManager |
namedOperationManager |
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.
|
boolean |
getAllowUnnamedImageManipulation() |
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
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected String assetServerUrlPrefix
protected String viewResolverName
protected StaticAssetStorageService staticAssetStorageService
protected BroadleafSiteResolver siteResolver
protected NamedOperationManager namedOperationManager
@Autowired protected org.springframework.core.env.Environment env
@Autowired protected org.springframework.context.ApplicationContext appCtx
@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 boolean getAllowUnnamedImageManipulation()
public String getAssetServerUrlPrefix()
public void setAssetServerUrlPrefix(String assetServerUrlPrefix)
public String getViewResolverName()
public void setViewResolverName(String viewResolverName)
Copyright © 2022. All rights reserved.