public final class Port extends Object implements Serializable
Descriptor that contains information about port and host associated with a protocol. WARNING: Do not hold on to this object since it may contain stale data if configuration changed. If you need current port info, get it from new object from oracle.jrf.ServerPlatformSupport.getPortConfig().
Modifier and Type | Method and Description |
---|---|
String |
getDnsResolvedHost()
Return the resolved dns name of the host configured with this port
|
String |
getDnsResolvedURLString()
Same as getURLString() but the host value in the URL is a resolved dns name
This can be used as the provider URL for JNDI context.
|
String |
getHost()
Return the host configured with this port.
|
int |
getPort()
Return the port
|
String |
getProtocol()
Return the transport protocol used for this port.
|
String |
getURLString()
Return the URL String in the format - protocol + "://" + host + ":" + port
This can be used for http/https connections.
|
boolean |
isLocal()
Return true if the host configured with this port is the same as the server's host, where this port is obtained.
|
public String getProtocol()
public String getHost()
Return the host configured with this port. If you need the host resolved DNS address, use Port.getResolvedDNSHost().
public String getDnsResolvedHost()
public boolean isLocal()
public int getPort()
public String getURLString()
Return the URL String in the format - protocol + "://" + host + ":" + port This can be used for http/https connections. See also getDnsResolvedURLString() and getDnsResolvedHost().
public String getDnsResolvedURLString()