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.
Reference, LinkRef, StringRefAddr, BinaryRefAddr
| Modifier and Type | Field and Description |
|---|---|
| protected String | addrType
Contains the type of this address. |
| private static final long | serialVersionUID
Use serialVersionUID from JNDI 1.1.1 for interoperability |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if obj is equal to this refaddr; false otherwise.possibly null obj to check. obj)Overrides java. Determines whether obj is equal to this RefAddr. |
| public abstract Object | |
| public String | Returns: The non-null address type of this address.Retrieves the address type of this address. |
| public int | Returns: The hash code of this address as an int.Overrides java. Computes the hash code of this address using its address type and contents. |
| public String | Returns: The non-null string representation of this address.Overrides java. Generates the string representation of this address. |
| addrType | back to summary |
|---|---|
| protected String addrType Contains the type of this address. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JNDI 1.1.1 for interoperability | |
| RefAddr | back to summary |
|---|---|
| protected RefAddr(String addrType) Constructs a new instance of RefAddr using its address type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Determines whether obj is equal to this RefAddr. obj is equal to this RefAddr if all of these conditions are true
| |
| getContent | back to summary |
|---|---|
| public abstract Object getContent() Retrieves the contents of this address.
| |
| getType | back to summary |
|---|---|
| public String getType() Retrieves the address type of this address.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. 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.
| |