|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fossilec.odettej.transport.NetworkAddress
public abstract class NetworkAddress
This class represents a Network Address with no association to a transportation layer. Subclasses will tipically be associated should be a specific, protocol dependent, implementation.
It provides a general model object used throughout API for making connections.
Constructor Summary | |
---|---|
protected |
NetworkAddress()
Protected constructor that allow subclasses to create others constructors. |
protected |
NetworkAddress(java.lang.String address)
General form of creating a NetworkAddress object using the
String representation of the address. |
Method Summary | |
---|---|
abstract java.lang.String |
getType()
Return a type string that identifies this address type. |
protected abstract void |
parse(java.lang.String address)
Allow the setting up of subclasses context when invoked created through general constructor NetworkAddress(String) . |
abstract java.lang.String |
toString()
Return a String representation of this address object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected NetworkAddress()
protected NetworkAddress(java.lang.String address) throws AddressException
NetworkAddress
object using the
String representation of the address.
address
- String representation of the network address.
AddressException
- Fail to parse the address.Method Detail |
---|
protected abstract void parse(java.lang.String address) throws AddressException
NetworkAddress(String)
.
address
- String representation of the network address.
AddressException
- Fail to parse the address.public abstract java.lang.String getType()
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |