com.atlassian.confluence.servlet
Class FileServerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.atlassian.plugin.servlet.BaseFileServerServlet
              extended by com.atlassian.confluence.servlet.FileServerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FileServerServlet
extends com.atlassian.plugin.servlet.BaseFileServerServlet

See Also:
Serialized Form

Field Summary
static java.lang.String ATTACHMENTS_URL_PREFIX
           
static java.lang.String RESOURCE_URL_PREFIX
           
static java.lang.String THUMBNAILS_URL_PREFIX
           
static java.lang.String USER_RESOURCE_URL_PREFIX
           
 
Fields inherited from class com.atlassian.plugin.servlet.BaseFileServerServlet
PATH_SEPARATOR, SERVLET_PATH
 
Constructor Summary
FileServerServlet()
           
 
Method Summary
protected  java.lang.String getContentType(java.lang.String location)
           
 java.lang.String getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest)
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 com.atlassian.plugin.servlet.DownloadStrategy instantiateDownloadStrategy(java.lang.Class downloadStrategyClass)
           
protected  java.lang.String urlDecode(java.lang.String url)
           
 
Methods inherited from class com.atlassian.plugin.servlet.BaseFileServerServlet
addDownloadStrategy, doGet, getMimeType, init, serveFileImpl
 
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, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTACHMENTS_URL_PREFIX

public static final java.lang.String ATTACHMENTS_URL_PREFIX
See Also:
Constant Field Values

RESOURCE_URL_PREFIX

public static final java.lang.String RESOURCE_URL_PREFIX
See Also:
Constant Field Values

USER_RESOURCE_URL_PREFIX

public static final java.lang.String USER_RESOURCE_URL_PREFIX
See Also:
Constant Field Values

THUMBNAILS_URL_PREFIX

public static final java.lang.String THUMBNAILS_URL_PREFIX
See Also:
Constant Field Values
Constructor Detail

FileServerServlet

public FileServerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class com.atlassian.plugin.servlet.BaseFileServerServlet
Throws:
javax.servlet.ServletException

getDecodedPathInfo

public java.lang.String getDecodedPathInfo(javax.servlet.http.HttpServletRequest httpServletRequest)
Specified by:
getDecodedPathInfo in class com.atlassian.plugin.servlet.BaseFileServerServlet

instantiateDownloadStrategy

public com.atlassian.plugin.servlet.DownloadStrategy instantiateDownloadStrategy(java.lang.Class downloadStrategyClass)
Specified by:
instantiateDownloadStrategy in class com.atlassian.plugin.servlet.BaseFileServerServlet

urlDecode

protected java.lang.String urlDecode(java.lang.String url)
Specified by:
urlDecode in class com.atlassian.plugin.servlet.BaseFileServerServlet

getContentType

protected java.lang.String getContentType(java.lang.String location)
Specified by:
getContentType in class com.atlassian.plugin.servlet.BaseFileServerServlet


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.