Class RefAddr
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BinaryRefAddr, StringRefAddr
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.
- Since:
- 1.3
- See Also:
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
addrType |
Contains the type of this address. |
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
protected |
Constructs a new instance of RefAddr using its address type. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals |
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. |
Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | Modifier and Type | Method | Description |
|---|---|---|
protected Object |
clone() |
Creates and returns a copy of this object. |
protected void |
finalize() |
Deprecated, for removal: This API element is subject to removal in a future version. Finalization is deprecated and subject to removal in a future release. |
final Class |
getClass() |
Returns the runtime class of this 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. |
final void |
wait() |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted. |
final void |
wait |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |
final void |
wait |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |
Field Details
addrType
protected String addrType
Constructor Details
RefAddr
protected RefAddr(String addrType)
- Parameters:
-
addrType- A non-null string describing the type of the address.
Method Details
getType
public String getType()
- Returns:
- The non-null address type of this address.
getContent
public abstract Object getContent()
- Returns:
- The possibly null address contents.
equals
public boolean equals(Object obj)
obj is equal to this RefAddr if 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).
hashCode
toString
public String toString()
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.