|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.servlet.request.BaseRequest
public abstract class BaseRequest
All Requests extend this class. All requests are required to supply a username and password
Field Summary | |
---|---|
java.lang.String |
password
|
java.lang.String |
username
|
Constructor Summary | |
---|---|
BaseRequest()
Construct this request with the currently logged on user. |
|
BaseRequest(java.lang.String username,
java.lang.String password)
Construct this request with a specified username and password. |
Method Summary | |
---|---|
CommandResponse |
executeCommand()
Executes code on the server side that queries the database, and returns a ServerResponse. |
java.lang.String |
getPassword()
Gets the password of the user making this Request |
java.lang.String |
getUsername()
Gets the username of the user making this Request |
abstract CommandResponse |
processRequest(UserBean userBean)
This request is executed on the server assuming the username and password returns a valid UserBean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String username
public final java.lang.String password
Constructor Detail |
---|
public BaseRequest(java.lang.String username, java.lang.String password)
public BaseRequest()
Method Detail |
---|
public final CommandResponse executeCommand()
CommandRequest
executeCommand
in interface CommandRequest
public abstract CommandResponse processRequest(UserBean userBean) throws java.lang.Exception
java.lang.Exception
public final java.lang.String getUsername()
CommandRequest
getUsername
in interface CommandRequest
public final java.lang.String getPassword()
CommandRequest
getPassword
in interface CommandRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |