Class ServiceInfo.Address

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

public static class ServiceInfo.Address extends Object
This Java class defines the URL of an SAP CC service.
  • Field Details

  • Constructor Details

    • Address

      public Address()
    • Address

      public Address(String fullHost, int port)
  • Method Details

    • setFullHost

      public void setFullHost(String host)
      Sets the address host.
      Parameters:
      host - The address of the host machine in the SAP system landscape
    • getFullHost

      public String getFullHost()
      Gets the full host (with the any suffix the address created with it).
      Returns:
      The address host
    • getHost

      public 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 URL getURL(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(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(boolean withFullHost)
    • getInetSocketAddress

      public InetSocketAddress getInetSocketAddress()
    • fromString

      public static final ServiceInfo.Address fromString(String s)
    • initAddress

      public static ServiceInfo.Address initAddress(String host, int port)
    • isAnyAddress

      public static boolean isAnyAddress(String addr)
    • isAnyAddress

      public static boolean isAnyAddress(String[] addresses)
    • removeAny

      public static String removeAny(String addr)