org.jboss.test.web.servlets
Class LogoutServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.jboss.test.web.servlets.LogoutServlet

public class LogoutServlet
extends HttpServlet

A servlet that logs out a user by invalidating any current session and then redirects the user to the welcome page.

See Also:
Serialized Form

Constructor Summary
LogoutServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
protected  void processRequest(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutServlet

public LogoutServlet()
Method Detail

processRequest

protected void processRequest(HttpServletRequest request,
                              HttpServletResponse response)
                       throws ServletException,
                              java.io.IOException
Throws:
ServletException
java.io.IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException