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

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

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

See Also:
Serialized Form

Nested Class Summary
static class KeyValueGetRequest.KeyName
           
 
Field Summary
 
Fields inherited from class edu.jhu.tmaj.servlet.request.BaseRequest
password, username
 
Constructor Summary
KeyValueGetRequest(KeyValueGetRequest.KeyName key)
           
 
Method Summary
static java.lang.String getKeyValue(KeyValueGetRequest.KeyName key)
           
static KeyValueGetResponse getResponse(KeyValueGetRequest.KeyName key)
           
 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

KeyValueGetRequest

public KeyValueGetRequest(KeyValueGetRequest.KeyName key)
Method Detail

getKeyValue

public static java.lang.String getKeyValue(KeyValueGetRequest.KeyName key)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

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

getResponse

public static KeyValueGetResponse getResponse(KeyValueGetRequest.KeyName key)

toString

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