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(String hoststr,
int port)
Creates a new IIOPAddress for
host and port . |
Modifier and Type | Method and Description |
---|---|
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(CDRInputStream cdr) |
static IIOPAddress |
read(InputStream in) |
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) |
copy, get_next, toCDR
public IIOPAddress(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(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class ProtocolAddressBase
ConfigurationException
public static IIOPAddress read(InputStream in)
public String getIP()
public String getHostname()
public void setHostname(String hn)
public InetAddress getConfiguredHost()
public int getPort()
public void setPort(int p)
public String toString()
toString
in class ProtocolAddressBase
public boolean fromString(String s)
fromString
in class ProtocolAddressBase
public void write(CDROutputStream cdr)
write
in class ProtocolAddressBase
public static IIOPAddress read(CDRInputStream cdr)
public String getOriginalHost()
Copyright © 2016 JacORB. All rights reserved.