public abstract class DOFAddress extends java.lang.Object implements DOFImmutable, java.io.Serializable
DOFConnection
is used to communicate
with a specific node identified by a DOFAddress. The DOFConnection.Config
contains information
about the DOFAddress that the connection refers to.
DOFAddress is opaque. In order to gain access to the encapsulated information, you must use the transport that defines
the address. This is also required to convert a DOFAddress from one transport to another.
To create a DOFAddress, call the specific implementation. For example, in order to create an Inet DOFAddress, call
org.opendof.core.transport.inet.InetTransport.createAddress.
NOTE: Classes that extend DOFAddress must implement Object.hashCode()
and Object.equals(java.lang.Object)
.Modifier and Type | Class and Description |
---|---|
static class |
DOFAddress.Type
Address types.
|
Constructor and Description |
---|
DOFAddress() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
getAddress()
Get the opaque transport-specific address information.
|
abstract DOFAddress.Type |
getAddressType()
Get the transport type for the specific address information.
|
abstract java.lang.Class<? extends org.opendof.core.transport.Transport> |
getTransport()
Get the transport associated with the address.
|
public abstract java.lang.Object getAddress()
public abstract DOFAddress.Type getAddressType()
public abstract java.lang.Class<? extends org.opendof.core.transport.Transport> getTransport()