|
JavaTM 2 Platform Std. Ed. v1.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.naming.RefAddr
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.
Reference
,
LinkRef
,
StringRefAddr
,
BinaryRefAddr
,
Serialized FormField Summary | |
protected String |
addrType
Contains the type of this address. |
Constructor Summary | |
protected |
RefAddr(String addrType)
Constructs a new instance of RefAddr using its address type. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String addrType
Constructor Detail |
protected RefAddr(String addrType)
addrType
- A non-null string describing the type of the address.Method Detail |
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()
toString
in class Object
|
JavaTM 2 Platform Std. Ed. v1.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.