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