public final class ConnectionConfig
extends java.lang.Object
Constructor and Description |
---|
ConnectionConfig() |
Modifier and Type | Method and Description |
---|---|
ConnectionConfig |
clone() |
java.util.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
|
java.lang.String |
getPassword()
Get the password to connect with
|
java.lang.String |
getUri()
Get the uri to connect with
|
java.lang.String |
getUsername()
Get the username to connect with
|
boolean |
isCompress()
Get the compression state of this connection
|
ConnectionConfig |
setCapabilities(java.util.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(java.lang.String password)
Set the password to connect with
|
ConnectionConfig |
setUri(java.lang.String uri)
Set the uri to connect with.
|
ConnectionConfig |
setUsername(java.lang.String username)
Set the username to connect with
|
public ProgressMonitor getConnectionMonitor()
public ConnectionConfig setConnectionMonitor(ProgressMonitor monitor)
monitor
- the monitor to setpublic java.lang.String getUri()
LiveViewException
public ConnectionConfig setUri(java.lang.String uri) throws LiveViewException
uri
- the uri to setLiveViewException
public java.lang.String getUsername()
public ConnectionConfig setUsername(java.lang.String username) throws LiveViewException
username
- the username to setLiveViewException
public java.lang.String getPassword()
public ConnectionConfig setPassword(java.lang.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 java.util.EnumSet<LiveViewClientCapability> getCapabilities()
public ConnectionConfig setCapabilities(java.util.EnumSet<LiveViewClientCapability> capabilities)
capabilities
- public ConnectionListener getListener()
public ConnectionConfig setListener(ConnectionListener listener)
listener
- the listener to setpublic ConnectionConfig clone()
clone
in class java.lang.Object