Package com.highdeal.admin.hci
Class ServiceInfo.Address
java.lang.Object
com.highdeal.admin.hci.ServiceInfo.Address
- Enclosing class:
- ServiceInfo
This
Java class defines the URL of an SAP CC service.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final ServiceInfo.AddressfromString(String s) Gets the full host (with the any suffix the address created with it).getHost()Gets the host without the any suffix.intgetPort()Gets the address port.Gets the URL corresponding to the address for the protocol specified.inthashCode()static ServiceInfo.AddressinitAddress(String host, int port) booleanisAny()static booleanisAnyAddress(String addr) static booleanisAnyAddress(String[] addresses) static StringvoidsetFullHost(String host) Sets the address host.voidsetPort(int port) Sets the address port.toString()toString(boolean withFullHost)
-
Field Details
-
ANY_ADDRESS_SUFFIX
- See Also:
-
-
Constructor Details
-
Address
public Address() -
Address
-
-
Method Details
-
setFullHost
Sets the address host.- Parameters:
host- The address of the host machine in the SAP system landscape
-
getFullHost
Gets the full host (with the any suffix the address created with it).- Returns:
- The address host
-
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
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
-
hashCode
public int hashCode() -
toString
-
toString
-
getInetSocketAddress
-
fromString
-
initAddress
-
isAnyAddress
-
isAnyAddress
-
removeAny
-