public abstract class AbstractActiveConnection extends Object implements ActiveConnection
Constructor and Description |
---|
AbstractActiveConnection() |
Modifier and Type | Method and Description |
---|---|
String |
getConnectionIdentifier()
Returns the identifier of the connection being actively used.
|
String |
getIdentifier()
Returns the unique identifier assigned to this object.
|
String |
getRemoteHost()
Returns the hostname or IP address of the remote host that initiated the
connection, if known.
|
Date |
getStartDate()
Returns the date and time the connection began.
|
GuacamoleTunnel |
getTunnel()
Returns the connected GuacamoleTunnel being used.
|
String |
getUsername()
Returns the name of the user who is using this connection.
|
void |
setConnectionIdentifier(String connnectionIdentifier)
Sets the identifier of the connection being actively used.
|
void |
setIdentifier(String identifier)
Sets the identifier assigned to this object.
|
void |
setRemoteHost(String remoteHost)
Sets the hostname or IP address of the remote host that initiated the
connection.
|
void |
setStartDate(Date startDate)
Sets the date and time the connection began.
|
void |
setTunnel(GuacamoleTunnel tunnel)
Sets the connected GuacamoleTunnel being used.
|
void |
setUsername(String username)
Sets the name of the user who is using this connection.
|
public String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
Identifiable
setIdentifier
in interface Identifiable
identifier
- The identifier to assign.public String getConnectionIdentifier()
ActiveConnection
getConnectionIdentifier
in interface ActiveConnection
public void setConnectionIdentifier(String connnectionIdentifier)
ActiveConnection
setConnectionIdentifier
in interface ActiveConnection
connnectionIdentifier
- The identifier of the connection being actively used.public Date getStartDate()
ActiveConnection
getStartDate
in interface ActiveConnection
public void setStartDate(Date startDate)
ActiveConnection
setStartDate
in interface ActiveConnection
startDate
- The date and time the connection began, or null if this
information is not available.public String getRemoteHost()
ActiveConnection
getRemoteHost
in interface ActiveConnection
public void setRemoteHost(String remoteHost)
ActiveConnection
setRemoteHost
in interface ActiveConnection
remoteHost
- The hostname or IP address of the remote host, or null if this
information is not available.public String getUsername()
ActiveConnection
getUsername
in interface ActiveConnection
public void setUsername(String username)
ActiveConnection
setUsername
in interface ActiveConnection
username
- The name of the user who is using this connection, or null if this
information is not available.public GuacamoleTunnel getTunnel()
ActiveConnection
getTunnel
in interface ActiveConnection
public void setTunnel(GuacamoleTunnel tunnel)
ActiveConnection
setTunnel
in interface ActiveConnection
tunnel
- The connected GuacamoleTunnel, or null if permission is denied.Copyright © 2015. All rights reserved.