Class DefaultWebResourceDispatcher
java.lang.Object
com.atlassian.confluence.plugin.webresource.DefaultWebResourceDispatcher
- All Implemented Interfaces:
WebResourceDispatcher
-
Constructor Summary
ConstructorDescriptionDefaultWebResourceDispatcher
(com.atlassian.plugin.webresource.impl.Globals globals) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDispatch
(String path) protected com.atlassian.plugin.webresource.impl.support.http.Request
createRequest
(String path, Map<String, String> params) void
dispatch
(javax.servlet.http.HttpServletRequest httpServletRequest, String path, javax.servlet.http.HttpServletResponse httpServletResponse) This method is a modified version ofPluginResourceDownload.serveFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
It will dispatch the request with an overridden path instead of the original path
-
Constructor Details
-
DefaultWebResourceDispatcher
public DefaultWebResourceDispatcher(com.atlassian.plugin.webresource.impl.Globals globals)
-
-
Method Details
-
dispatch
public void dispatch(javax.servlet.http.HttpServletRequest httpServletRequest, String path, javax.servlet.http.HttpServletResponse httpServletResponse) This method is a modified version ofPluginResourceDownload.serveFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
It will dispatch the request with an overridden path instead of the original path- Specified by:
dispatch
in interfaceWebResourceDispatcher
-
createRequest
-
canDispatch
- Specified by:
canDispatch
in interfaceWebResourceDispatcher
-