Package tigase.http.util
Class StaticFileServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- tigase.http.util.StaticFileServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class StaticFileServlet extends javax.servlet.http.HttpServlet
- Author:
- andrzej
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOWED_PATTERN_KEY
static String
DIRECTORY_KEY
static String
INDEX_KEY
-
Constructor Summary
Constructors Constructor Description StaticFileServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
init()
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
ALLOWED_PATTERN_KEY
public static final String ALLOWED_PATTERN_KEY
- See Also:
- Constant Field Values
-
DIRECTORY_KEY
public static final String DIRECTORY_KEY
- See Also:
- Constant Field Values
-
INDEX_KEY
public static final String INDEX_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
-