public class CorbalocURL extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CorbalocURL.HostFormat
Enumeration of host name formats
|
static class |
CorbalocURL.Protocol
Enumeration of supported protocols
|
| Constructor and Description |
|---|
CorbalocURL(CorbalocURL.Protocol protocol,
String host,
int port,
String version,
byte[] objectId)
Create a new CorbalocURL
|
CorbalocURL(CorbalocURL.Protocol protocol,
String host,
int port,
String version,
String objectId)
Create a new CorbalocURL
|
CorbalocURL(String corbaloc)
Create a new CorbalocURL from a corbaloc string
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalHostname()
Get the canonical host name
|
String |
getFullObjectId()
Get the fully qualified Object Id
|
String |
getHostname()
Get the host name
|
String |
getIpAddress()
Get the host ip address
|
String |
getObjectId()
Get the object Id
|
int |
getPort()
Get the port
|
CorbalocURL.Protocol |
getProtocol()
Get the protocol
|
String |
getVersion()
Get the protocol version
|
String |
toExternalForm(CorbalocURL.HostFormat format)
Get the external human readable form of the URL.
|
public CorbalocURL(CorbalocURL.Protocol protocol, String host, int port, String version, byte[] objectId)
protocol - The protocol for the URLhost - The host name for the URLport - The port for the URLversion - The protocol version if null will default to version 1.0objectId - The object ID as a byte[] will be converted to a String using
UTF8 encodingpublic CorbalocURL(String corbaloc)
corbaloc - a corbaloc stringpublic CorbalocURL(CorbalocURL.Protocol protocol, String host, int port, String version, String objectId)
protocol - The protocol for the URLhost - The host name for the URLport - The port for the URLversion - The protocol version if null will default to version 1.0objectId - The fully qualified object ID including app and poa names as a
stringpublic String toExternalForm(CorbalocURL.HostFormat format)
format - The requested format of the host name within the URLpublic CorbalocURL.Protocol getProtocol()
public String getIpAddress()
public String getHostname()
public String getCanonicalHostname()
public int getPort()
public String getVersion()
public String getFullObjectId()
public String getObjectId()
Copyright © 2018 ADDC Infotech GmbH. All rights reserved.