Added missing constructors.

This commit is contained in:
Michael Jumper
2012-03-23 14:04:03 -07:00
parent 837614800d
commit d831969322
2 changed files with 26 additions and 0 deletions

View File

@@ -24,6 +24,19 @@ public class TunnelAttachEvent implements CredentialEvent, TunnelEvent {
*/
private GuacamoleTunnel tunnel;
/**
* Creates a new TunnelAttachEvent which represents the attaching of the
* given tunnel via a request associated with the given credentials.
*
* @param credentials The credentials associated with the request
* attaching the tunnel.
* @param tunnel The tunnel being attached.
*/
public TunnelAttachEvent(Credentials credentials, GuacamoleTunnel tunnel) {
this.credentials = credentials;
this.tunnel = tunnel;
}
@Override
public Credentials getCredentials() {
return credentials;

View File

@@ -24,6 +24,19 @@ public class TunnelDetachEvent implements CredentialEvent, TunnelEvent {
*/
private GuacamoleTunnel tunnel;
/**
* Creates a new TunnelDetachEvent which represents the detaching of the
* given tunnel via a request associated with the given credentials.
*
* @param credentials The credentials associated with the request
* detaching the tunnel.
* @param tunnel The tunnel being detached.
*/
public TunnelDetachEvent(Credentials credentials, GuacamoleTunnel tunnel) {
this.credentials = credentials;
this.tunnel = tunnel;
}
@Override
public Credentials getCredentials() {
return credentials;