| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Enumeration addrs = …;
RefAddr addr = (RefAddr)addrs.nextElement();
Based on 75 examples
public abstract class RefAddr extends Object implements Serializable
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.
Field Summary | |
---|---|
protected String |
addrType
Contains the type of this address. |
Constructor Summary | |
---|---|
protected |
Constructs a new instance of RefAddr using its address type. |
Method Summary | |
---|---|
boolean |
Determines whether obj is equal to this RefAddr. |
abstract Object |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 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.public abstract Object getContent()
public String getType()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |