public class IIOPAddress extends ProtocolAddressBase
configuration, next, stringified| Constructor and Description |
|---|
IIOPAddress()
Creates a new IIOPAddress that will be initialized later by a string
|
IIOPAddress(java.lang.String hoststr,
int port)
Creates a new IIOPAddress for
host and port. |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.jacorb.config.Configuration configuration) |
boolean |
equals(java.lang.Object other) |
boolean |
fromString(java.lang.String s) |
java.net.InetAddress |
getConfiguredHost()
Returns the host as supplied to the constructor.
|
java.lang.String |
getHostname()
Returns the host part of this IIOPAddress, as a DNS hostname.
|
java.lang.String |
getIP()
Returns the host part of this IIOPAddress, as a numeric IP address in
dotted decimal form.
|
java.lang.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(CDRInputStream cdr) |
static IIOPAddress |
read(InputStream in) |
void |
setHostname(java.lang.String hn)
Used by the ORB to configure just the hostname portion of a
proxy IOR address
|
void |
setPort(int p) |
java.lang.String |
toString() |
void |
write(CDROutputStream cdr) |
copy, get_next, toCDRpublic IIOPAddress(java.lang.String hoststr,
int port)
host and port.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.public IIOPAddress()
public void configure(org.jacorb.config.Configuration configuration)
throws org.jacorb.config.ConfigurationException
configure in interface org.jacorb.config.Configurableconfigure in class ProtocolAddressBaseorg.jacorb.config.ConfigurationExceptionpublic static IIOPAddress read(InputStream in)
public java.lang.String getIP()
public java.lang.String getHostname()
public void setHostname(java.lang.String hn)
public java.net.InetAddress getConfiguredHost()
public int getPort()
public void setPort(int p)
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class ProtocolAddressBasepublic boolean fromString(java.lang.String s)
fromString in class ProtocolAddressBasepublic void write(CDROutputStream cdr)
write in class ProtocolAddressBasepublic static IIOPAddress read(CDRInputStream cdr)
public java.lang.String getOriginalHost()