Class DefaultWebResourceDispatcher

java.lang.Object
com.atlassian.confluence.plugin.webresource.DefaultWebResourceDispatcher
All Implemented Interfaces:
WebResourceDispatcher

public class DefaultWebResourceDispatcher extends Object implements WebResourceDispatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultWebResourceDispatcher(com.atlassian.plugin.webresource.impl.Globals globals)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected com.atlassian.plugin.webresource.impl.support.http.Request
     
    void
    dispatch(javax.servlet.http.HttpServletRequest httpServletRequest, String path, javax.servlet.http.HttpServletResponse httpServletResponse)
    This method is a modified version of PluginResourceDownload.serveFile(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) It will dispatch the request with an overridden path instead of the original path

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 of PluginResourceDownload.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 interface WebResourceDispatcher
    • createRequest

      protected com.atlassian.plugin.webresource.impl.support.http.Request createRequest(String path, Map<String,String> params)
    • canDispatch

      public boolean canDispatch(String path)
      Specified by:
      canDispatch in interface WebResourceDispatcher