org.jacorb.orb.iiop
public class IIOPAddress extends ProtocolAddressBase
Version: $Id: IIOPAddress.java,v 1.12 2006/07/27 08:26:40 alphonse.bendt Exp $
| Constructor Summary | |
|---|---|
| IIOPAddress(String hoststr, int port)
Creates a new IIOPAddress for host and port. | |
| IIOPAddress()
Creates a new IIOPAddress that will be initialized later by a string | |
| Method Summary | |
|---|---|
| void | configure(Configuration configuration) |
| boolean | equals(Object other) |
| boolean | fromString(String s) |
| InetAddress | getConfiguredHost()
Returns the host as supplied to the constructor. |
| String | getHostname()
Returns the host part of this IIOPAddress, as a DNS hostname.
|
| String | getIP()
Returns the host part of this IIOPAddress, as a numeric IP address in
dotted decimal form. |
| String | getOriginalHost()
Method for use by the PrintIOR utility. |
| int | getPort()
Returns the port number of this address, represented as an integer
in the range 0..65535. |
| int | hashCode() |
| static IIOPAddress | read(InputStream in) |
| static IIOPAddress | read(CDRInputStream cdr) |
| void | setHostname(String hn)
Used by the ORB to configure just the hostname portion of a
proxy IOR address |
| void | setPort(int p) |
| String | toString() |
| void | write(CDROutputStream cdr) |
host and port.Parameters: hoststr either a DNS name, or a textual representation of a
numeric IP address (dotted decimal) port the port number represented as an integer, in the range
0..65535. As a special convenience, a negative number is
converted by adding 65536 to it; this helps using values that were
previously stored in a Java short.
Returns: Host name or IP address or both if the original host string cannot be determined.