getHostURL()

Method. Gets the host URL for the current session, including the transport type, host name, and port. This lets you get all of the current host connection information with a single method. To get the individual values that comprise a host URL, use the getHostName and getPort methods, and the transportType property.

public String getHostURL()