|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.sptci.echo2.http.LogoutServlet
public class LogoutServlet
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.
| Field Summary | |
|---|---|
private String |
url
The path to which the user should be redirected to after logging out of the current session. |
private static String |
URL_PARAM
The name of the servlet init-param that holds the value
of url. |
| Constructor Summary | |
|---|---|
LogoutServlet()
|
|
| Method Summary | |
|---|---|
void |
init()
Initialise this servlet instance. |
protected void |
invalidate(HttpServletRequest request)
Invalidate the current HTTP session and display a standard page that lets the user restart a new session. |
protected void |
service(HttpServletRequest request,
HttpServletResponse response)
Process HTTP requests. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String URL_PARAM
init-param that holds the value
of url.
private String url
| Constructor Detail |
|---|
public LogoutServlet()
| Method Detail |
|---|
public void init()
init in class GenericServlet
protected void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
service in class HttpServletServletException
IOExceptioninvalidate(javax.servlet.http.HttpServletRequest)protected void invalidate(HttpServletRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||