org.appfuse.webapp.action
Class LoginServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.appfuse.webapp.action.LoginServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class LoginServlet
extends HttpServlet

Implementation of HttpServlet that is used to get a username and password and encrypt the password before sending to container-managed authentication.

View Source

Version:
$Revision: 1.9 $ $Date: 2004/03/31 13:04:24 $
Author:
Matt Raible
See Also:
Serialized Form

Constructor Summary
LoginServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Route the user to the execute method
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Route the user to the execute method
 void execute(HttpServletRequest request, HttpServletResponse response)
          Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).
 void init()
          Validates the Init and Context parameters, configures authentication URL
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Constructor Detail

LoginServlet

public LoginServlet()
Method Detail

init

public void init()
          throws ServletException
Validates the Init and Context parameters, configures authentication URL

Throws:
ServletException - if the init parameters are invalid or any other problems occur during initialisation

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws IOException,
                  ServletException
Route the user to the execute method

Parameters:
request - The HTTP request we are processing
response - The HTTP response we are creating
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws IOException,
                   ServletException
Route the user to the execute method

Parameters:
request - The HTTP request we are processing
response - The HTTP response we are creating
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs

execute

public void execute(HttpServletRequest request,
                    HttpServletResponse response)
             throws IOException,
                    ServletException
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).

Parameters:
request - The HTTP request we are processing
response - The HTTP response we are creating
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs


Copyright © 2002-2004