- All Implemented Interfaces:
public abstract class RefAddr extends Object implements Serializable
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.
Fields Modifier and Type Field Description
protected StringContains the type of this address.
Constructors Modifier Constructor Description
String addrType)(Constructs a new instance of RefAddr using its address type.
Modifier and Type Method Description
Object obj)(Determines whether obj is equal to this RefAddr.
()Retrieves the contents of this address.
()Retrieves the address type of this address.
()Computes the hash code of this address using its address type and contents.
()Generates the string representation of this address.
addrTypeprotected String addrTypeContains the type of this address.
RefAddrprotected RefAddr(String addrType)Constructs a new instance of RefAddr using its address type.
addrType- A non-null string describing the type of the address.
getTypepublic String getType()Retrieves the address type of this address.
- The non-null address type of this address.
getContentpublic abstract Object getContent()Retrieves the contents of this address.
- The possibly null address contents.
equalspublic boolean equals(Object obj)Determines whether obj is equal to this RefAddr.
obj is equal to this RefAddr if all of these conditions are true
- 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).
hashCodepublic 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.
toStringpublic 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.