|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
com.atlassian.bamboo.fileserver.FileServingServlet
public class FileServingServlet
This servlet serves up download data files as if they are in the webapp download directory.
Field Summary | |
---|---|
static String |
MIME_TYPE_CONFIGURATION_FILE
|
static String |
URI_PREFIX
|
static int |
URI_PREFIX_LENGTH
|
Constructor Summary | |
---|---|
FileServingServlet()
|
Method Summary | |
---|---|
protected void |
doDelete(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
Does not support HTTP Deletes - returns a 400 error. |
protected void |
doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected void |
doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
Does not support HTTP Posts - returns a 400 error. |
String |
getMimeType(String fileName)
Uses the filename extension type to work out the mime type. |
void |
init()
Load the mime types from WEB-INF/mimetypes.xml |
void |
setPersister(Persister persister)
Can override the persister for testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MIME_TYPE_CONFIGURATION_FILE
public static final String URI_PREFIX
public static final int URI_PREFIX_LENGTH
Constructor Detail |
---|
public FileServingServlet()
Method Detail |
---|
public void init()
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
ServletException
IOException
public String getMimeType(String fileName)
fileName
-
protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
ServletException
IOException
protected void doDelete(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
ServletException
IOException
public void setPersister(Persister persister)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |