net.dpml.transit.model
Class RequestIdentifier

java.lang.Object
  extended by net.dpml.transit.model.RequestIdentifier
All Implemented Interfaces:
Serializable

public final class RequestIdentifier
extends Object
implements Serializable

A request identifier.

Version:
1.1.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
RequestIdentifier(String address, int port, String protocol, String scheme, String prompt)
          Creation of a new request identifier.
 
Method Summary
 boolean equals(Object obj)
          Test for equality.
 int hashCode()
          Return the hascode for this instance.
 String toString()
          Return the string representation of this instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestIdentifier

public RequestIdentifier(String address,
                         int port,
                         String protocol,
                         String scheme,
                         String prompt)
                  throws NullArgumentException
Creation of a new request identifier.

Parameters:
address - the address
port - the port
protocol - the protocol
scheme - the scheme
prompt - the prompt
Throws:
NullArgumentException - if any of the address, protocol, scheme or prompt arguments is null.
Method Detail

equals

public boolean equals(Object obj)
Test for equality.

Overrides:
equals in class Object
Parameters:
obj - the object to test against
Returns:
true if this object is the same as the supplied object

hashCode

public int hashCode()
Return the hascode for this instance.

Overrides:
hashCode in class Object
Returns:
the hashcode

toString

public String toString()
Return the string representation of this instance.

Overrides:
toString in class Object
Returns:
the string value