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()
LiveViewException
public ConnectionConfig setUri(String uri) throws LiveViewException
uri
- the uri to setLiveViewException
public String getUsername()
public ConnectionConfig setUsername(String username) throws LiveViewException
username
- the username to setLiveViewException
public String getPassword()
public ConnectionConfig setPassword(String password) throws LiveViewException
password
- the password to setLiveViewException
public 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()