com.atlassian.plugin.servlet
Class AbstractFileServerServlet

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

public abstract class AbstractFileServerServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
static java.lang.String PATH_SEPARATOR
           
static java.lang.String RESOURCE_URL_PREFIX
           
static java.lang.String SERVLET_PATH
           
 
Constructor Summary
AbstractFileServerServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
protected abstract  java.util.List<DownloadStrategy> getDownloadStrategies()
          Returns a list of DownloadStrategy objects in the order that they will be matched against.
 
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
 

Field Detail

PATH_SEPARATOR

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

RESOURCE_URL_PREFIX

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

SERVLET_PATH

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

AbstractFileServerServlet

public AbstractFileServerServlet()
Method Detail

doGet

protected final void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
                           javax.servlet.http.HttpServletResponse httpServletResponse)
                    throws java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException

getDownloadStrategies

protected abstract java.util.List<DownloadStrategy> getDownloadStrategies()
Returns a list of DownloadStrategy objects in the order that they will be matched against. The list returned should be cached as this method is called for every request.



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.