public interface Connectable
Modifier and Type | Method and Description |
---|---|
default org.apache.guacamole.net.GuacamoleTunnel |
connect(org.apache.guacamole.protocol.GuacamoleClientInformation info)
Deprecated.
This function has been deprecated in favor of
connect(org.apache.guacamole.protocol.GuacamoleClientInformation, java.util.Map) ,
which allows for connection parameter tokens to be injected and
applied by cooperating extensions, replacing the functionality
previously provided through the StandardTokens
class. It continues to be defined on this interface for
compatibility. New implementations should instead implement
connect(org.apache.guacamole.protocol.GuacamoleClientInformation, java.util.Map) . |
org.apache.guacamole.net.GuacamoleTunnel |
connect(org.apache.guacamole.protocol.GuacamoleClientInformation info,
Map<String,String> tokens)
Establishes a connection to guacd using the information associated with
this object.
|
int |
getActiveConnections()
Returns the number of active connections associated with this object.
|
@Deprecated default org.apache.guacamole.net.GuacamoleTunnel connect(org.apache.guacamole.protocol.GuacamoleClientInformation info) throws org.apache.guacamole.GuacamoleException
connect(org.apache.guacamole.protocol.GuacamoleClientInformation, java.util.Map)
,
which allows for connection parameter tokens to be injected and
applied by cooperating extensions, replacing the functionality
previously provided through the StandardTokens
class. It continues to be defined on this interface for
compatibility. New implementations should instead implement
connect(org.apache.guacamole.protocol.GuacamoleClientInformation, java.util.Map)
.info
- Information associated with the connecting client.org.apache.guacamole.GuacamoleException
- If an error occurs while connecting to guacd, or if permission to
connect is denied.org.apache.guacamole.net.GuacamoleTunnel connect(org.apache.guacamole.protocol.GuacamoleClientInformation info, Map<String,String> tokens) throws org.apache.guacamole.GuacamoleException
TokenFilter
.info
- Information associated with the connecting client.tokens
- A Map containing the token names and corresponding values to be
applied as parameter tokens when establishing the connection. If the
implementation does not support parameter tokens, this Map may be
ignored.org.apache.guacamole.GuacamoleException
- If an error occurs while connecting to guacd, or if permission to
connect is denied.int getActiveConnections()
Copyright © 2020. All rights reserved.