Serializable
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.
Modifier and Type | Field | Description |
---|---|---|
protected String |
addrType |
Contains the type of this address. |
Modifier | Constructor | Description |
---|---|---|
protected |
Constructs a new instance of RefAddr using its address type. |
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. |
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 if all of these conditions are true
public int hashCode()
public String toString()
© 1993, 2023, 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.
https://docs.oracle.com/en/java/javase/21/docs/api/java.naming/javax/naming/RefAddr.html