public GuacamoleTunnel assignGuacamoleTunnel ( final GuacamoleSocket socket , String connectionID ) { // Create tunnel with given socket this . tunnel = new AbstractGuacamoleTunnel ( ) { @ Override public GuacamoleSocket getSocket ( ) { return socket ; } @ Override public UUID getUUID ( ) { return uuid ; } } ; // Store connection ID of the primary connection only if ( isPrimaryConnection ( ) ) this . connectionID = connectionID ; // Return newly-created tunnel return this . tunnel ; }
Associates a new GuacamoleTunnel with this connection record using the given socket .