mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-05 20:57:40 +00:00
Tunnel attach and detach events.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package net.sourceforge.guacamole.net.event;
|
||||
|
||||
import net.sourceforge.guacamole.net.GuacamoleTunnel;
|
||||
import net.sourceforge.guacamole.net.auth.Credentials;
|
||||
|
||||
/**
|
||||
* An event which is triggered whenever a tunnel is being attached to a
|
||||
* session. The tunnel being attached can be accessed through getTunnel(),
|
||||
* and the set of all credentials available from the request which is
|
||||
* attaching the tunnel can be retrieved using getCredentials().
|
||||
*
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class TunnelAttachEvent implements CredentialEvent, TunnelEvent {
|
||||
|
||||
/**
|
||||
* The credentials associated with the request that is attaching the
|
||||
* tunnel, if any.
|
||||
*/
|
||||
private Credentials credentials;
|
||||
|
||||
/**
|
||||
* The tunnel being attached.
|
||||
*/
|
||||
private GuacamoleTunnel tunnel;
|
||||
|
||||
@Override
|
||||
public Credentials getCredentials() {
|
||||
return credentials;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GuacamoleTunnel getTunnel() {
|
||||
return tunnel;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
package net.sourceforge.guacamole.net.event;
|
||||
|
||||
import net.sourceforge.guacamole.net.GuacamoleTunnel;
|
||||
import net.sourceforge.guacamole.net.auth.Credentials;
|
||||
|
||||
/**
|
||||
* An event which is triggered whenever a tunnel is being detached from a
|
||||
* session. The tunnel being detached can be accessed through getTunnel(),
|
||||
* and the set of all credentials available from the request which is
|
||||
* detaching the tunnel can be retrieved using getCredentials().
|
||||
*
|
||||
* @author Michael Jumper
|
||||
*/
|
||||
public class TunnelDetachEvent implements CredentialEvent, TunnelEvent {
|
||||
|
||||
/**
|
||||
* The credentials associated with the request that is detaching the
|
||||
* tunnel, if any.
|
||||
*/
|
||||
private Credentials credentials;
|
||||
|
||||
/**
|
||||
* The tunnel being detached.
|
||||
*/
|
||||
private GuacamoleTunnel tunnel;
|
||||
|
||||
@Override
|
||||
public Credentials getCredentials() {
|
||||
return credentials;
|
||||
}
|
||||
|
||||
@Override
|
||||
public GuacamoleTunnel getTunnel() {
|
||||
return tunnel;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user