com.sptci.echo2.http
Class LogoutServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.sptci.echo2.http.LogoutServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class LogoutServlet
- extends HttpServlet
A servlet used to implement logout feature for Echo2 applications.
Invalidates the user session and redirects the user to a page configured
as a init-param for the servlet.
Copyright 2006 Sans Pareil Technologies, Inc.
- Version:
- $Id: LogoutServlet.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2006-06-25
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogoutServlet
public LogoutServlet()
init
public void init()
- Initialise this servlet instance.
- Overrides:
init in class GenericServlet
service
protected void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Process HTTP requests.
- Overrides:
service in class HttpServlet
- Throws:
ServletException
IOException- See Also:
invalidate(javax.servlet.http.HttpServletRequest)
invalidate
protected void invalidate(HttpServletRequest request)
- Invalidate the current HTTP session and display a standard page
that lets the user restart a new session.
- Parameters:
request - The request whose session is to be invalidated.