public static class ServiceInfo.Address
extends java.lang.Object
Java class defines the URL of an SAP CC service.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_ADDRESS_SUFFIX |
| Constructor and Description |
|---|
Address() |
Address(java.lang.String fullHost,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static ServiceInfo.Address |
fromString(java.lang.String s) |
java.lang.String |
getFullHost()
Gets the full host (with the any suffix the address created with it).
|
java.lang.String |
getHost()
Gets the host without the any suffix.
|
java.net.InetSocketAddress |
getInetSocketAddress() |
int |
getPort()
Gets the address port.
|
java.net.URL |
getURL(java.lang.String protocol)
Gets the URL corresponding to the address for the protocol specified.
|
int |
hashCode() |
static ServiceInfo.Address |
initAddress(java.lang.String host,
int port) |
boolean |
isAny() |
static boolean |
isAnyAddress(java.lang.String addr) |
static boolean |
isAnyAddress(java.lang.String[] addresses) |
static java.lang.String |
removeAny(java.lang.String addr) |
void |
setFullHost(java.lang.String host)
Sets the address host.
|
void |
setPort(int port)
Sets the address port.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean withFullHost) |
public static final java.lang.String ANY_ADDRESS_SUFFIX
public Address()
public Address(java.lang.String fullHost,
int port)
public void setFullHost(java.lang.String host)
host - The address of the host machine in the SAP system landscapepublic java.lang.String getFullHost()
public java.lang.String getHost()
public void setPort(int port)
port - The address portpublic int getPort()
public java.net.URL getURL(java.lang.String protocol)
protocol - A communication protocolpublic boolean isAny()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean withFullHost)
public java.net.InetSocketAddress getInetSocketAddress()
public static final ServiceInfo.Address fromString(java.lang.String s)
public static ServiceInfo.Address initAddress(java.lang.String host, int port)
public static boolean isAnyAddress(java.lang.String addr)
public static boolean isAnyAddress(java.lang.String[] addresses)
public static java.lang.String removeAny(java.lang.String addr)