Class RefAddr
java.lang.Object
javax.naming.RefAddr
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BinaryRefAddr, StringRefAddr
This class represents the address of a communications end-point.
It consists of a type that describes the communication mechanism
and an address contents determined by an RefAddr subclass.
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether obj is equal to this RefAddr.abstract ObjectRetrieves the contents of this address.getType()Retrieves the address type of this address.inthashCode()Computes the hash code of this address using its address type and contents.toString()Generates the string representation of this address.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Field Details
-
addrType
Contains the type of this address.
-
-
Constructor Details
-
RefAddr
Constructs a new instance of RefAddr using its address type.- Parameters:
addrType- A non-null string describing the type of the address.
-
-
Method Details
-
getType
Retrieves the address type of this address.- Returns:
- The non-null address type of this address.
-
getContent
Retrieves the contents of this address.- Returns:
- The possibly null address contents.
-
equals
Determines whether obj is equal to this RefAddr.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
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.
-