public final class ConnectionConfig extends Object
Constructor and Description |
---|
ConnectionConfig() |
Modifier and Type | Method and Description |
---|---|
ConnectionConfig |
clone() |
EnumSet<LiveViewClientCapability> |
getCapabilities()
Get the capabilities
|
ProgressMonitor |
getConnectionMonitor()
The api uses this method to retrieve the progress monitor specified by the user.
|
ConnectionListener |
getListener()
Get the connection listener
|
String |
getPassword()
Get the password to connect with
|
String |
getUri()
Get the uri to connect with
|
String |
getUsername()
Get the username to connect with
|
boolean |
isCompress()
Get the compression state of this connection
|
ConnectionConfig |
setCapabilities(EnumSet<LiveViewClientCapability> capabilities)
Set the ClientCapabilities that are supported by this client.
|
ConnectionConfig |
setCompress(boolean compress)
Enable or disable compression on this connection
|
ConnectionConfig |
setConnectionMonitor(ProgressMonitor monitor)
Sets the monitor to use by the api
|
ConnectionConfig |
setListener(ConnectionListener listener)
Set the connection listener
|
ConnectionConfig |
setPassword(String password)
Set the password to connect with
|
ConnectionConfig |
setUri(String uri)
Set the uri to connect with.
|
ConnectionConfig |
setUsername(String username)
Set the username to connect with
|
public ProgressMonitor getConnectionMonitor()
public ConnectionConfig setConnectionMonitor(ProgressMonitor monitor)
monitor
- the monitor to setpublic String getUri()
public ConnectionConfig setUri(String uri)
uri
- the uri to setpublic String getUsername()
public ConnectionConfig setUsername(String username)
username
- the username to setpublic String getPassword()
public ConnectionConfig setPassword(String password)
password
- the password to setpublic ConnectionConfig setCompress(boolean compress)
compress
- true to enable compression or false otherwisepublic boolean isCompress()
public EnumSet<LiveViewClientCapability> getCapabilities()
public ConnectionConfig setCapabilities(EnumSet<LiveViewClientCapability> capabilities)
capabilities
- public ConnectionListener getListener()
public ConnectionConfig setListener(ConnectionListener listener)
listener
- the listener to setpublic ConnectionConfig clone()