edu.jhu.tmaj.servlet.request.impl
Class LoginRequest

java.lang.Object
  extended by edu.jhu.tmaj.servlet.request.BaseRequest
      extended by edu.jhu.tmaj.servlet.request.impl.LoginRequest
All Implemented Interfaces:
CommandRequest, java.io.Serializable

public final class LoginRequest
extends BaseRequest
implements java.io.Serializable

Returns a userbean containing all the permissions of the user given the user's username and password. This request is made when a user is attempting to log on. The permissions of the user are used to enforce client-side security.

See Also:
UserBean.lookup(String username, String password), Serialized Form

Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
LoginRequest(java.lang.String username, java.lang.String password)
           
 
Method Summary
 CommandResponse processRequest(UserBean userBean)
          This request is executed on the server assuming the username and password returns a valid UserBean.
 java.lang.String toString()
           
 
Methods inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
executeCommand, getPassword, getUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoginRequest

public LoginRequest(java.lang.String username,
                    java.lang.String password)
Method Detail

processRequest

public CommandResponse processRequest(UserBean userBean)
                               throws java.sql.SQLException
Description copied from class: BaseRequest
This request is executed on the server assuming the username and password returns a valid UserBean.

Specified by:
processRequest in class BaseRequest
Throws:
java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object