public class TunnelCloseEvent extends Object implements UserEvent, CredentialEvent, TunnelEvent
If a Listener
throws
a GuacamoleException when handling an event of this type, the request to close
the tunnel is effectively vetoed and will remain connected.
Constructor and Description |
---|
TunnelCloseEvent(AuthenticatedUser authenticatedUser,
Credentials credentials,
org.apache.guacamole.net.GuacamoleTunnel tunnel)
Creates a new TunnelCloseEvent which represents the closing of the
given tunnel via a request associated with the given credentials.
|
Modifier and Type | Method and Description |
---|---|
AuthenticatedUser |
getAuthenticatedUser()
Returns the AuthenticatedUser identifying the user triggering the event,
if any.
|
Credentials |
getCredentials()
Returns the current credentials of the user triggering the event, if any.
|
org.apache.guacamole.net.GuacamoleTunnel |
getTunnel()
Returns the tunnel associated with this event, if any.
|
public TunnelCloseEvent(AuthenticatedUser authenticatedUser, Credentials credentials, org.apache.guacamole.net.GuacamoleTunnel tunnel)
authenticatedUser
- The AuthenticatedUser associated with the user that is closing the
tunnel, if any.credentials
- The credentials associated with the request that closed the
tunnel. Note that these credentials are not necessarily the same as
the credentials provided when the user authenticated.tunnel
- The tunnel being closed.public AuthenticatedUser getAuthenticatedUser()
UserEvent
getAuthenticatedUser
in interface UserEvent
public Credentials getCredentials()
CredentialEvent
getCredentials
in interface CredentialEvent
public org.apache.guacamole.net.GuacamoleTunnel getTunnel()
TunnelEvent
getTunnel
in interface TunnelEvent
Copyright © 2018. All rights reserved.