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, service
public static final String DEBUG_INIT_PARAM
public static final long ONE_YEAR_MILLIS
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected long getLastModified(javax.servlet.http.HttpServletRequest request)
getLastModified
in class javax.servlet.http.HttpServlet
protected String getResourcePath(javax.servlet.http.HttpServletRequest request)
request
- the http servlet requestCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.