org.griphyn.cPlanner.classes
Class AuthenticateRequest

java.lang.Object
  extended by org.griphyn.cPlanner.classes.Data
      extended by org.griphyn.cPlanner.classes.AuthenticateRequest
All Implemented Interfaces:
Cloneable

public class AuthenticateRequest
extends Data

The object that describes the authenticate request. It specifies the mode of authentication, the contact string of the resource.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
static char GRIDFTP_RESOURCE
          The type identifying that the resource to authenticate against is a grid ftp server.
static char JOBMANAGER_RESOURCE
          The type identifying that the resource to authenticate against is a job manager.
private  String mPool
          The pool id at of the pool which the resource is .
private  String mResourceContact
          The contact string to the resource.
private  char mType
          Specifies what type of resource you are authenticating to.
 
Fields inherited from class org.griphyn.cPlanner.classes.Data
mLogger, mLogMsg
 
Constructor Summary
private AuthenticateRequest()
          Default Constructor.
  AuthenticateRequest(char type, String pool, String url)
          Overloaded Constructor.
 
Method Summary
 Object clone()
          Returns a clone of the object.
 String getPool()
          Returns the pool id of the associated resource in this request.
 String getResourceContact()
          Returns the url of the resource to contact.
 char getResourceType()
          Returns the type of the request.
 boolean requestInvalid()
          Checks if the request is invalid or not.
 String toString()
          Returns a string version of this.
 
Methods inherited from class org.griphyn.cPlanner.classes.Data
setToString, vectorToString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JOBMANAGER_RESOURCE

public static final char JOBMANAGER_RESOURCE
The type identifying that the resource to authenticate against is a job manager.

See Also:
Constant Field Values

GRIDFTP_RESOURCE

public static final char GRIDFTP_RESOURCE
The type identifying that the resource to authenticate against is a grid ftp server.

See Also:
Constant Field Values

mType

private char mType
Specifies what type of resource you are authenticating to.


mPool

private String mPool
The pool id at of the pool which the resource is .


mResourceContact

private String mResourceContact
The contact string to the resource.

Constructor Detail

AuthenticateRequest

private AuthenticateRequest()
Default Constructor.


AuthenticateRequest

public AuthenticateRequest(char type,
                           String pool,
                           String url)
Overloaded Constructor.

Method Detail

getResourceType

public char getResourceType()
Returns the type of the request.


getResourceContact

public String getResourceContact()
Returns the url of the resource to contact.


getPool

public String getPool()
Returns the pool id of the associated resource in this request.


toString

public String toString()
Returns a string version of this.

Specified by:
toString in class Data

clone

public Object clone()
Returns a clone of the object.

Overrides:
clone in class Object

requestInvalid

public boolean requestInvalid()
Checks if the request is invalid or not. It is invalid if the resource contact is null or empty or the type is an invalid type.

Returns:
boolean true if the request is invalid.


Copyright © 2007 The University of Southern California. All Rights Reserved.