Class URLComponents

java.lang.Object
com.seeq.utilities.process.URLComponents

public final class URLComponents extends Object
This class provides URL information (such as the hostname and scheme).
  • Field Details

    • DEFAULT_WEBSERVER_PORT

      public static final int DEFAULT_WEBSERVER_PORT
      See Also:
  • Constructor Details

    • URLComponents

      public URLComponents()
  • Method Details

    • getHostname

      public static String getHostname()
      Finds what the host name should be to put into the URL. If Windows or UNIX, use the computer name, then IP, then localhost. If Mac, skip the name because Bonjour is only compatible with other devices running Bonjour.
      Returns:
      The host name of the local computer