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.
Reference
,
LinkRef
,
StringRefAddr
,
BinaryRefAddr
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
addrType
Contains the type of this address.
|
Modifier | Constructor and Description |
---|---|
protected |
RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected String addrType
protected RefAddr(String addrType)
addrType
- A non-null string describing the type of the address.public String getType()
public abstract Object getContent()
public boolean equals(Object obj)
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 String toString()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.