org.glite.rgma
Class ResourceEndpoint

java.lang.Object
  extended by org.glite.rgma.Endpoint
      extended by org.glite.rgma.ResourceEndpoint

public class ResourceEndpoint
extends Endpoint

A resource endpoint, containing a URL and a Resource ID.


Constructor Summary
ResourceEndpoint(ResourceEndpoint endpoint)
          Creates a new Endpoint object.
ResourceEndpoint(java.lang.String url, int resourceId)
          Creates a new Endpoint object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this object with the specified object.
 int getResourceId()
          Gets the resource identifier.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.glite.rgma.Endpoint
getUrl
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceEndpoint

public ResourceEndpoint(ResourceEndpoint endpoint)
Creates a new Endpoint object.

Parameters:
endpoint - Existing Endpoint to construct the new Endpoint.

ResourceEndpoint

public ResourceEndpoint(java.lang.String url,
                        int resourceId)
Creates a new Endpoint object.

Parameters:
url - The service URL.
resourceId - The resource identified.
Method Detail

getResourceId

public int getResourceId()
Gets the resource identifier.

Returns:
The resourceId.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class Endpoint
Returns:
A string representation of the object.
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object obj)
Compares this object with the specified object.

Overrides:
equals in class Endpoint
Parameters:
obj - Object to compare.
Returns:
true if this object and the specified object are equal.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Endpoint
Returns:
a hash code value for this object.
See Also:
Object.hashCode()