Class Server

java.lang.Object
overit.geocall.util.hyperlink.Server

public class Server extends Object
Class used to manage the HTML Server
  • Field Details

    • _host

      protected String _host
    • _domain

      protected String _domain
    • _ip

      protected String _ip
  • Constructor Details

    • Server

      public Server(String s)
      Constructor of a Server
      Parameters:
      s - String representing the Server
  • Method Details

    • setServer

      public void setServer(String s)
      Sets the Server
      Parameters:
      s - String representing the Server
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public boolean isIp()
      Returns if the server is ip
      Returns:
      true if is ip, false otherwise
    • haveDomain

      public boolean haveDomain()
      Returns if the Server have a domain
      Returns:
      true if the Server have a domain, false otherwise
    • looksIp

      protected static boolean looksIp(String s)
      Returns if the string looks like an ip
      Parameters:
      s - The string to consider
      Returns:
      true the string looks like an ip, false otherwise
    • toString

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

      public void setHost(String h)
      Sets the host
      Parameters:
      h - The host to set
    • setDomain

      public void setDomain(String d)
      Sets the domain
      Parameters:
      d - The domain to set
    • setIp

      public void setIp(String ip)
      Sets the ip
      Parameters:
      ip - The ip to set
    • getHost

      public String getHost()
      Returns the host
      Returns:
      A string representing the host
    • getDomain

      public String getDomain()
      Returns the domain
      Returns:
      A string representing the domain
    • getIp

      public String getIp()
      Returns the ip
      Returns:
      A string representing the ip