Known Direct Subclasses
BinaryRefAddr |
This class represents the binary form of the address of
a communications end-point. |
StringRefAddr |
This class represents the string form of the address of
a communications end-point. |
|
Class Overview
This class represents the address of a communications end-point.
It consists of a type that describes the communication mechanism
and an address contents determined by an RefAddr subclass.
For example, an address type could be "BSD Printer Address",
which specifies that it is an address to be used with the BSD printing
protocol. Its contents could be the machine name identifying the
location of the printer server that understands this protocol.
A RefAddr is contained within a Reference.
RefAddr is an abstract class. Concrete implementations of it
determine its synchronization properties.
Summary
Protected Constructors |
|
RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type.
|
Public Methods |
boolean
|
equals(Object obj)
Determines whether obj is equal to this RefAddr.
|
abstract
Object
|
getContent()
Retrieves the contents of this address.
|
String
|
getType()
Retrieves the address type of this address.
|
int
|
hashCode()
Computes the hash code of this address using its address type and contents.
|
String
|
toString()
Generates the string representation of this address.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Fields
protected
String
addrType
Contains the type of this address.
Protected Constructors
protected
RefAddr
(String addrType)
Constructs a new instance of RefAddr using its address type.
Parameters
addrType
| A non-null string describing the type of the address.
|
Public Methods
public
boolean
equals
(Object obj)
Determines whether obj is equal to this RefAddr.
obj is equal to this RefAddr all of these conditions are true
non-null
- instance of RefAddr
- obj has the same address type as this RefAddr (using String.compareTo())
- both obj and this RefAddr's contents are null or they are equal
(using the equals() test).
Parameters
obj
| possibly null obj to check. |
Returns
- true if obj is equal to this refaddr; false otherwise.
public
abstract
Object
getContent
()
Retrieves the contents of this address.
Returns
- The possibly null address contents.
public
String
getType
()
Retrieves the address type of this address.
Returns
- The non-null address type of this address.
public
int
hashCode
()
Computes the hash code of this address using its address type and contents.
The hash code is the sum of the hash code of the address type and
the hash code of the address contents.
Returns
- The hash code of this address as an int.
public
String
toString
()
Generates the string representation of this address.
The string consists of the address's type and contents with labels.
This representation is intended for display only and not to be parsed.
Returns
- The non-null string representation of this address.