Class ResourceServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.torproject.metrics.onionoo.server.ResourceServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class ResourceServlet extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doGet(HttpServletRequestWrapper request, HttpServletResponseWrapper response)
void
doGet(HttpServletRequestWrapper request, HttpServletResponseWrapper response, long receivedRequestMillis)
Handles the HTTP GET request in the wrappedrequest
by writing an HTTP GET response to the likewiseresponse
, both of which are wrapped to facilitate testing.long
getLastModified(javax.servlet.http.HttpServletRequest request)
void
init(javax.servlet.ServletConfig config)
protected static java.lang.String[]
parseSearchParameters(java.lang.String queryString)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
getLastModified
public long getLastModified(javax.servlet.http.HttpServletRequest request)
- Overrides:
getLastModified
in classjavax.servlet.http.HttpServlet
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
java.io.IOException
-
doGet
public void doGet(HttpServletRequestWrapper request, HttpServletResponseWrapper response) throws java.io.IOException
- Throws:
java.io.IOException
-
doGet
public void doGet(HttpServletRequestWrapper request, HttpServletResponseWrapper response, long receivedRequestMillis) throws java.io.IOException
Handles the HTTP GET request in the wrappedrequest
by writing an HTTP GET response to the likewiseresponse
, both of which are wrapped to facilitate testing.- Throws:
java.io.IOException
-
parseSearchParameters
protected static java.lang.String[] parseSearchParameters(java.lang.String queryString)
-
-