Class FileServerServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.atlassian.plugin.servlet.AbstractFileServerServlet
com.atlassian.jira.web.servlet.FileServerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@Path("download") @Consumes("text/plain") @Produces("text/plain") public class FileServerServlet extends com.atlassian.plugin.servlet.AbstractFileServerServlet
This is used to serve up download references in JIRA plugins.
See Also:
  • Field Summary

    Fields inherited from class com.atlassian.plugin.servlet.AbstractFileServerServlet

    PATH_SEPARATOR, RESOURCE_URL_PREFIX, SERVLET_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest)
     
    protected List<com.atlassian.plugin.servlet.DownloadStrategy>
     
    protected String
     

    Methods inherited from class com.atlassian.plugin.servlet.AbstractFileServerServlet

    doGet

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileServerServlet

      public FileServerServlet()
  • Method Details

    • getDecodedPathInfo

      @GET public String getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest)
    • urlDecode

      protected String urlDecode(String url)
    • getContentType

      protected String getContentType(String location)
    • getDownloadStrategies

      protected List<com.atlassian.plugin.servlet.DownloadStrategy> getDownloadStrategies()
      Specified by:
      getDownloadStrategies in class com.atlassian.plugin.servlet.AbstractFileServerServlet