public class ResourceServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_INIT_PARAM
Context parameter for activating debug mode, which will disable
caching.
|
static long |
ONE_YEAR_MILLIS |
| Constructor and Description |
|---|
ResourceServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Override of Servlet.destroy();
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override of HttpServlet.doGet()
|
protected long |
getLastModified(javax.servlet.http.HttpServletRequest request)
Override of HttpServlet.getLastModified()
|
protected String |
getResourcePath(javax.servlet.http.HttpServletRequest request)
Returns the resource path from the http servlet request.
|
void |
init(javax.servlet.ServletConfig config)
Override of Servlet.init();
|
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, servicepublic static final String DEBUG_INIT_PARAM
public static final long ONE_YEAR_MILLIS
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
IOException
service in interface javax.servlet.Servletservice in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified in class javax.servlet.http.HttpServletprotected String getResourcePath(javax.servlet.http.HttpServletRequest request)
request - the http servlet requestCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.