java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.i2p.router.web.servlets.LogoutServlet
- All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Logout servlet to invalidate session.
- See Also:
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionExplicit no-arg constructor, as the servlet container requires.Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(HttpServletRequest req, HttpServletResponse resp) protected voiddoPost(HttpServletRequest req, HttpServletResponse resp) private StringThe session cookie the request carries.voidinit()Methods inherited from class HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
Field Details
_log
Logger for this class.
Constructor Details
LogoutServlet
public LogoutServlet()Explicit no-arg constructor, as the servlet container requires.
Method Details
init
- Overrides:
initin classGenericServlet- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doGetin classHttpServlet- Throws:
ServletExceptionIOException
doPost
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doPostin classHttpServlet- Throws:
ServletExceptionIOException
getSessionCookie
The session cookie the request carries.- Parameters:
req- the request to read- Returns:
- the cookie value, or null if absent