public abstract class RefAddr extends Objectimplements 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.
Reference,
LinkRef,
StringRefAddr,
BinaryRefAddr,
Serialized Form
| Modifier and Type | Field and Description |
|---|---|
protected String |
addrType
Contains the type of this address.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RefAddr(String
Constructs a new instance of RefAddr using its address type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
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.
|
protected StringaddrType
protected RefAddr(StringaddrType)
addrType - A non-null string describing the type of the address.
public StringgetType()
public abstract ObjectgetContent()
public boolean equals(Objectobj)
obj is equal to this RefAddr all of these conditions are true
equals in class
Object
obj - possibly null obj to check.
getContent(),
getType()
public int hashCode()
hashCode in class
Object
Object.hashCode()
public StringtoString()