Package com.seeq.utilities.process
Class URLComponents
java.lang.Object
com.seeq.utilities.process.URLComponents
This class provides URL information (such as the hostname and scheme).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Finds what the host name should be to put into the URL.
-
Field Details
-
DEFAULT_WEBSERVER_PORT
public static final int DEFAULT_WEBSERVER_PORT- See Also:
-
-
Constructor Details
-
URLComponents
public URLComponents()
-
-
Method Details
-
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
-