com.highdeal.admin.hci
Class ServiceInfo.Address

java.lang.Object
  extended by com.highdeal.admin.hci.ServiceInfo.Address
Enclosing class:
ServiceInfo

public static class ServiceInfo.Address
extends java.lang.Object

This Java class defines the URL of an SAP CC service.


Field Summary
static java.lang.String ANY_ADDRESS_SUFFIX
           
 
Constructor Summary
ServiceInfo.Address()
           
ServiceInfo.Address(java.lang.String fullHost, int port)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_ADDRESS_SUFFIX

public static final java.lang.String ANY_ADDRESS_SUFFIX
See Also:
Constant Field Values
Constructor Detail

ServiceInfo.Address

public ServiceInfo.Address()

ServiceInfo.Address

public ServiceInfo.Address(java.lang.String fullHost,
                           int port)
Method Detail

setFullHost

public void setFullHost(java.lang.String host)
Sets the address host.

Parameters:
host - The address of the host machine in the SAP system landscape

getFullHost

public java.lang.String getFullHost()
Gets the full host (with the any suffix the address created with it).

Returns:
The address host

getHost

public java.lang.String getHost()
Gets the host without the any suffix.

Returns:
The host without the any suffix

setPort

public void setPort(int port)
Sets the address port.

Parameters:
port - The address port

getPort

public int getPort()
Gets the address port.

Returns:
The address port

getURL

public java.net.URL getURL(java.lang.String protocol)
Gets the URL corresponding to the address for the protocol specified.

Parameters:
protocol - A communication protocol
Returns:
The URL corresponding to the address for the protocol specified

isAny

public boolean isAny()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean withFullHost)

getInetSocketAddress

public java.net.InetSocketAddress getInetSocketAddress()

fromString

public static final ServiceInfo.Address fromString(java.lang.String s)

initAddress

public static ServiceInfo.Address initAddress(java.lang.String host,
                                              int port)

isAnyAddress

public static boolean isAnyAddress(java.lang.String addr)

isAnyAddress

public static boolean isAnyAddress(java.lang.String[] addresses)

removeAny

public static java.lang.String removeAny(java.lang.String addr)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)