public class ServerInformation
extends java.lang.Object
| Constructor and Description | 
|---|
ServerInformation()
Creates an empty instance 
 | 
ServerInformation(java.lang.String hostname)
Creates a new instance 
 | 
ServerInformation(java.lang.String hostname,
                 int port)
Creates a new instance 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getHost()
Get the host information as required by the omero.client. 
 | 
java.lang.String | 
getHostname()
Return the hostname. 
 | 
int | 
getPort()
Return the port 
 | 
java.lang.String | 
getProtocol()
Returns the protocol (lower case) if a websocket URL was specified
 (empty String otherwise). 
 | 
boolean | 
isURL()
Returns  
true if a websocket
 URL was specified. | 
void | 
setHost(java.lang.String host)
Set the hostname or websocket URL 
 | 
void | 
setHostname(java.lang.String hostname)
Deprecated. 
 
Renamed to  
setHost(String)
 Set the hostname or websocket URL | 
void | 
setPort(int port)
Set the port 
 | 
java.lang.String | 
toString()  | 
public ServerInformation()
public ServerInformation(java.lang.String hostname)
hostname - The hostname or websocket URLpublic ServerInformation(java.lang.String hostname,
                         int port)
hostname - The hostname or websocket URLport - The portpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host - See abovepublic java.lang.String getHostname()
getHost()
 to get the full websocket URL.@Deprecated public void setHostname(java.lang.String hostname)
setHost(String)
 Set the hostname or websocket URLhostname - See abovepublic int getPort()
public void setPort(int port)
port - See abovepublic boolean isURL()
true if a websocket
 URL was specified.public java.lang.String getProtocol()
public java.lang.String toString()
toString in class java.lang.Object