public class IIOPAddress extends ProtocolAddressBase
configuration
Constructor and Description |
---|
IIOPAddress()
Creates a new IIOPAddress that will be initialized later by a string
|
IIOPAddress(ServerSocket serverSocket)
Method for use by the IIOPListener.
|
IIOPAddress(String hoststr,
int port)
Creates a new IIOPAddress for
host and port . |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
ProtocolAddressBase |
copy()
This function shall return an equivalent, copy of the profile.
|
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.
|
static InetAddress |
getLocalHost()
Returns an address for the localhost that is reasonable to use in the IORs we produce.
|
static String |
getLocalHostAddress(org.slf4j.Logger logger)
Returns a string representation of the localhost address.
|
static LinkedList<InetAddress> |
getNetworkInetAddresses()
Returns an ordered list of InetAddresses.
|
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.
|
ListenEndpoint.Protocol |
getProtocol() |
int |
hashCode() |
boolean |
isWildcard() |
static IIOPAddress |
read(InputStream in) |
void |
setHostInetAddress(InetAddress hostInetAddr)
Method for use by the IIOPListener to set host address for a wildcard listener after the
server socket has been instantiated.
|
void |
setHostname(String hn)
Used by the ORB to configure just the hostname portion of a proxy IOR address
|
void |
setPort(int p) |
void |
setProtocol(ListenEndpoint.Protocol proto) |
void |
setWildcardHost(boolean state)
Method for use by the IIOPListener to set the wildcard state of a wildcard listener after the
server socket has been instantiated.
|
String |
toString() |
void |
write(CDROutputStream cdr) |
toCDR
public IIOPAddress()
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(ServerSocket serverSocket)
serverSocket
which has already been instantiated.serverSocket
- public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class ProtocolAddressBase
ConfigurationException
public static IIOPAddress read(InputStream in)
public void setProtocol(ListenEndpoint.Protocol proto)
public ListenEndpoint.Protocol getProtocol()
public String getIP()
public String getHostName()
public void setHostname(String hn)
public InetAddress getConfiguredHost()
public int getPort()
public void setPort(int p)
public void setHostInetAddress(InetAddress hostInetAddr)
hostInetAddr
- public boolean isWildcard()
public void setWildcardHost(boolean state)
state
- 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 String getOriginalHost()
public static String getLocalHostAddress(org.slf4j.Logger logger)
public static InetAddress getLocalHost()
public static LinkedList<InetAddress> getNetworkInetAddresses()
public ProtocolAddressBase copy()
ProtocolAddressBase
copy
in class ProtocolAddressBase
Copyright © 2017 JacORB. All rights reserved.