public class ResourceController
extends org.springframework.extensions.webscripts.servlet.mvc.ResourceController
Overrides the VirtualizedResourceController (which in itself overrides the WebScript
ResourceController to use the
DependencyHandler to process requests for resources that contain content based checksums.
| Modifier and Type | Field and Description |
|---|---|
static String |
DOUBLE_FULL_STOP
Constant for double full stop ".." (or period as it is known in the US).
|
static String |
DOUBLE_QUOTES
Constant for the double quote '"'.
|
static String |
FORWARD_SLASH
Constant for the forward slash "/"
|
static String |
FULL_STOP
Constant for the full stop "." (or period as it is known in the US).
|
static String |
HTTP_HEADER_EXPIRES |
static String |
HTTP_HEADER_FAR_FUTURE_EXPIRES_VALUE |
static String |
SINGLE_QUOTE
Constant for the single quote "'"
|
| Constructor and Description |
|---|
ResourceController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatchResource(String path,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides the default method to use the
DependencyHandler to find resources before
falling back on the default WebScript library implementation. |
String |
getPath(String sourcePath,
String dependencyPath) |
boolean |
isAllowedResourcePath(String pathToCheck)
Checks whether resource path provided is allowed by web framework configuration.
|
void |
setDependencyAggregator(DependencyAggregator dependencyAggregator) |
void |
setDependencyHandler(DependencyHandler dependencyHandler)
Sets the
DependencyHandler to be used when looking up resources. |
void |
setDojoDependencyHandler(DojoDependencyHandler dojoDependencyHandler) |
void |
setWebframeworkConfigElement(WebFrameworkConfigElement webframeworkConfigElement) |
applyHeaders, commitResponse, commitResponse, copyStream, getDefaultUrl, handleRequestInternal, setDefaultUrlhandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final String HTTP_HEADER_EXPIRES
public static final String HTTP_HEADER_FAR_FUTURE_EXPIRES_VALUE
public static final String FORWARD_SLASH
Constant for the forward slash "/"
public static final String FULL_STOP
Constant for the full stop "." (or period as it is known in the US). In this context it is used to indicate the current location in paths.
public static final String DOUBLE_FULL_STOP
Constant for double full stop ".." (or period as it is known in the US). In this context it is used to indicate the part folder of the current location.
public static final String DOUBLE_QUOTES
Constant for the double quote '"'.
public static final String SINGLE_QUOTE
Constant for the single quote "'"
public void setDependencyHandler(DependencyHandler dependencyHandler)
Sets the DependencyHandler to be used when looking up resources.
dependencyHandler - DependencyHandlerpublic void setDependencyAggregator(DependencyAggregator dependencyAggregator)
public void setDojoDependencyHandler(DojoDependencyHandler dojoDependencyHandler)
public void setWebframeworkConfigElement(WebFrameworkConfigElement webframeworkConfigElement)
public boolean dispatchResource(String path, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
Overrides the default method to use the DependencyHandler to find resources before
falling back on the default WebScript library implementation.
dispatchResource in class org.springframework.extensions.webscripts.servlet.mvc.ResourceControllerjavax.servlet.ServletExceptionIOExceptionpublic boolean isAllowedResourcePath(String pathToCheck)
pathToCheck - resource path to checktrue if path is allowed to be viewed, otherwise falseCopyright © 2005–2016 Alfresco Software. All rights reserved.