|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dist1.acb.common.transport.InetAddressHelper
Provides some function for manipulating InetAddress
Method Summary | |
static java.net.InetAddress |
getByExtendedHostName(java.lang.String extendedHostName)
Tries to build new InetAddress using host name, if fails buid uses only ip. |
static java.net.InetAddress |
getByInetSocketAddress(java.net.InetSocketAddress addr)
Tries to build new InetAddress using host name, if fails buid uses only ip. |
static java.lang.String |
getExtendedHostName(java.net.InetAddress addr)
Returns extended host name in format "host/ip". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.net.InetAddress getByExtendedHostName(java.lang.String extendedHostName) throws java.lang.IllegalArgumentException
extendedHostName
- extended host name in format "host/ip". For
example: "asta.ait.gr/192.168.208.14"
java.lang.IllegalArgumentException
- if format of extendedHostName is
invalidpublic static java.net.InetAddress getByInetSocketAddress(java.net.InetSocketAddress addr)
addr
- An InetSocketAddress
public static java.lang.String getExtendedHostName(java.net.InetAddress addr)
addr
- An InetAddress
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |