mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-524: Clarify and document SimpleConnection implementation.
This commit is contained in:
@@ -41,10 +41,10 @@ import org.apache.guacamole.protocol.GuacamoleConfiguration;
|
|||||||
import org.apache.guacamole.token.TokenFilter;
|
import org.apache.guacamole.token.TokenFilter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An extremely basic Connection implementation. The underlying connection to
|
* A Connection implementation which establishes the underlying connection to
|
||||||
* guacd is established using the configuration information provided in
|
* guacd using the configuration information provided in guacamole.properties.
|
||||||
* guacamole.properties. Parameter tokens provided to connect() are
|
* Parameter tokens provided to connect() are automatically applied if
|
||||||
* automatically applied. Tracking of active connections and connection history
|
* explicitly requested. Tracking of active connections and connection history
|
||||||
* is not provided.
|
* is not provided.
|
||||||
*/
|
*/
|
||||||
public class SimpleConnection extends AbstractConnection {
|
public class SimpleConnection extends AbstractConnection {
|
||||||
@@ -162,10 +162,11 @@ public class SimpleConnection extends AbstractConnection {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the GuacamoleConfiguration describing how to connect to this
|
* Returns the GuacamoleConfiguration describing how to connect to this
|
||||||
* connection. Unlike the GuacamoleConfiguration returned by
|
* connection. Unlike {@link #getConfiguration()}, which is allowed to omit
|
||||||
* {@link #getConfiguration()}, which may omit or tokenize information,
|
* or tokenize information, the GuacamoleConfiguration returned by this
|
||||||
* the GuacamoleConfiguration returned by this function contains the full
|
* function will always be the full configuration to be used to establish
|
||||||
* configuration to be used to establish the connection.
|
* the connection, as provided when this SimpleConnection was created or via
|
||||||
|
* {@link #setConfiguration(org.apache.guacamole.protocol.GuacamoleConfiguration)}.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* The full GuacamoleConfiguration describing how to connect to this
|
* The full GuacamoleConfiguration describing how to connect to this
|
||||||
@@ -244,6 +245,19 @@ public class SimpleConnection extends AbstractConnection {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*
|
||||||
|
* <p>This implementation will connect using the GuacamoleConfiguration
|
||||||
|
* returned by {@link #getFullConfiguration()}, honoring the
|
||||||
|
* "guacd-hostname", "guacd-port", and "guacd-ssl" properties set within
|
||||||
|
* guacamole.properties. Parameter tokens will be taken into account if
|
||||||
|
* the SimpleConnection was explicitly requested to do so when created.
|
||||||
|
*
|
||||||
|
* <p>Implementations requiring more complex behavior should consider using
|
||||||
|
* the {@link AbstractConnection} base class or implementing
|
||||||
|
* {@link Connection} directly.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public GuacamoleTunnel connect(GuacamoleClientInformation info,
|
public GuacamoleTunnel connect(GuacamoleClientInformation info,
|
||||||
Map<String, String> tokens) throws GuacamoleException {
|
Map<String, String> tokens) throws GuacamoleException {
|
||||||
|
Reference in New Issue
Block a user