net.sourceforge.guacamole.net.event
Class TunnelConnectEvent

java.lang.Object
  extended by net.sourceforge.guacamole.net.event.TunnelConnectEvent
All Implemented Interfaces:
CredentialEvent, TunnelEvent

public class TunnelConnectEvent
extends Object
implements CredentialEvent, TunnelEvent

An event which is triggered whenever a tunnel is being connected. The tunnel being connected can be accessed through getTunnel(), and the set of all credentials available from the request which is connecting the tunnel can be retrieved using getCredentials().

Author:
Michael Jumper

Constructor Summary
TunnelConnectEvent(Credentials credentials, net.sourceforge.guacamole.net.GuacamoleTunnel tunnel)
          Creates a new TunnelConnectEvent which represents the connecting of the given tunnel via a request associated with the given credentials.
 
Method Summary
 Credentials getCredentials()
          Returns the current credentials of the user triggering the event, if any.
 net.sourceforge.guacamole.net.GuacamoleTunnel getTunnel()
          Returns the tunnel associated with this event, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnelConnectEvent

public TunnelConnectEvent(Credentials credentials,
                          net.sourceforge.guacamole.net.GuacamoleTunnel tunnel)
Creates a new TunnelConnectEvent which represents the connecting of the given tunnel via a request associated with the given credentials.

Parameters:
credentials - The credentials associated with the request connecting the tunnel.
tunnel - The tunnel being connected.
Method Detail

getCredentials

public Credentials getCredentials()
Description copied from interface: CredentialEvent
Returns the current credentials of the user triggering the event, if any.

Specified by:
getCredentials in interface CredentialEvent
Returns:
The current credentials of the user triggering the event, if any, or null if no credentials are associated with the event.

getTunnel

public net.sourceforge.guacamole.net.GuacamoleTunnel getTunnel()
Description copied from interface: TunnelEvent
Returns the tunnel associated with this event, if any.

Specified by:
getTunnel in interface TunnelEvent
Returns:
The tunnel associated with this event, if any, or null if no tunnel is associated with this event.


Copyright © 2013. All Rights Reserved.