public class I2PSnarkServlet extends BasicServlet
BasicServlet.HttpContent
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CONFIG_FILE |
_context, _log, _resourceBase
Constructor and Description |
---|
I2PSnarkServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handle what we can here, calling super.doGet() for the rest.
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handle what we can here, calling super.doPost() for the rest.
|
File |
getResource(String pathInContext)
We override this instead of passing a resource base to super(), because
if a resource base is set, super.getResource() always uses that base,
and we can't get any resources (like icons) out of the .war
|
void |
init(ServletConfig cfg) |
(package private) static String |
urlify(String s) |
addMimeMapping, addPaths, decodePath, doDelete, doOptions, doTrace, encodePath, getContent, getMimeType, loadMimeMap, passConditionalHeaders, sendData, setResourceBase, setWarBase, writeHeaders
doHead, doPut, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public static final String PROP_CONFIG_FILE
public void init(ServletConfig cfg) throws ServletException
init
in interface Servlet
init
in class BasicServlet
ServletException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
public File getResource(String pathInContext)
getResource
in class BasicServlet
pathInContext
- The path to find a resource for.public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class BasicServlet
ServletException
IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class BasicServlet
ServletException
IOException