mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUAC-1132: Add identifier to connection records.
This commit is contained in:
@@ -32,6 +32,11 @@ import org.glyptodon.guacamole.net.auth.ConnectionRecord;
|
||||
*/
|
||||
public class APITunnel {
|
||||
|
||||
/**
|
||||
* The identifier of the connection associated with this tunnel.
|
||||
*/
|
||||
private final String identifier;
|
||||
|
||||
/**
|
||||
* The date and time the connection began.
|
||||
*/
|
||||
@@ -60,12 +65,23 @@ public class APITunnel {
|
||||
* The record to copy data from.
|
||||
*/
|
||||
public APITunnel(ConnectionRecord record) {
|
||||
this.identifier = record.getIdentifier();
|
||||
this.startDate = record.getStartDate();
|
||||
this.remoteHost = record.getRemoteHost();
|
||||
this.username = record.getUsername();
|
||||
this.uuid = "STUB"; // STUB
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the identifier of the connection associated with this tunnel.
|
||||
*
|
||||
* @return
|
||||
* The identifier of the connection associated with this tunnel.
|
||||
*/
|
||||
public String getIdentifier() {
|
||||
return identifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the date and time the connection began.
|
||||
*
|
||||
|
Reference in New Issue
Block a user