| java.lang.Object org.datashare.objects.TokenRequestObject
TokenRequestObject | public class TokenRequestObject implements java.io.Serializable(Code) | | This class is used for both Client to Server communications and Server to Client
communications. For Client to Server, the client can REQUEST a Token and CANCEL
a request. The Client to Server CANCEL is used both for canceling a requested Token
that has not yet been received, and for returning a Token that has been received.
For the Server to Client, the server can GRANT the requested Token, and can
REVOKE a granted Token. This object is sent over the commandStatusConnection, not
with the data channels.
|
CANCEL | final public static int CANCEL(Code) | | Use this for typeOfRequest for
|
GRANT | final public static int GRANT(Code) | | Use this for typeOfRequest for
|
REQUEST | final public static int REQUEST(Code) | | Use this for typeOfRequest for
|
REVOKE | final public static int REVOKE(Code) | | Use this for typeOfRequest for
|
channelName | public String channelName(Code) | | The Channel name for the Token desired
|
serialVersionUID | final static long serialVersionUID(Code) | | this allows us to serialize this class without 'marshalling' errors.
|
sessionName | public String sessionName(Code) | | The Session name for the Token desired
|
tokenKey | public String tokenKey(Code) | | The ADSKey string for the channel for which EJBs are desired (required for COUNT request)
|
typeOfRequest | public int typeOfRequest(Code) | | This defines the type of history request, use REQUEST or CANCEL for Client to Server,
GRANT or REVOKE for Server to Client.
|
typeOfRequestStrings | final public static String typeOfRequestStrings(Code) | | use typeOfRequest as index into this to get String version of Request
|
TokenRequestObject | public TokenRequestObject()(Code) | | Constructor, normally not used
|
TokenRequestObject | public TokenRequestObject(int typeOfRequest, String tokenKey)(Code) | | Constructor, used except when typeOfRequest is REQUEST
Parameters: typeOfRequest - indicates what type of action is requested Parameters: tokenKey - tokenKey for the channel whose Token we are making a request/response for |
TokenRequestObject | public TokenRequestObject(int typeOfRequest, String sessionName, String channelName, String tokenKey)(Code) | | Constructor, required when typeOfRequest is REQUEST
Parameters: typeOfRequest - indicates what type of action is requested Parameters: tokenKey - tokenKey for the channel whose Token we are making a request/response for |
|
|