Class DefaultWebResourceDispatcher
java.lang.Object
com.atlassian.confluence.plugin.webresource.DefaultWebResourceDispatcher
- All Implemented Interfaces:
WebResourceDispatcher
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWebResourceDispatcher(com.atlassian.plugin.webresource.impl.Globals globals) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDispatch(String path) protected com.atlassian.plugin.webresource.impl.support.http.RequestcreateRequest(String path, Map<String, String> params) voiddispatch(jakarta.servlet.http.HttpServletRequest httpServletRequest, String path, jakarta.servlet.http.HttpServletResponse httpServletResponse) This method is a modified version ofPluginResourceDownload.serveFile(jakarta.servlet.http.HttpServletRequest, jakarta.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(jakarta.servlet.http.HttpServletRequest httpServletRequest, String path, jakarta.servlet.http.HttpServletResponse httpServletResponse) This method is a modified version ofPluginResourceDownload.serveFile(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)It will dispatch the request with an overridden path instead of the original path- Specified by:
dispatchin interfaceWebResourceDispatcher
-
createRequest
-
canDispatch
- Specified by:
canDispatchin interfaceWebResourceDispatcher
-