public interface Environment
Modifier and Type | Field and Description |
---|---|
static StringGuacamoleProperty |
GUACD_HOSTNAME
The hostname of the server where guacd (the Guacamole proxy server) is
running.
|
static IntegerGuacamoleProperty |
GUACD_PORT
The port that guacd (the Guacamole proxy server) is listening on.
|
static BooleanGuacamoleProperty |
GUACD_SSL
Whether guacd requires SSL/TLS on connections.
|
Modifier and Type | Method and Description |
---|---|
File |
getGuacamoleHome()
Returns the Guacamole home directory as determined when this Environment
object was created.
|
<Type> Type |
getProperty(GuacamoleProperty<Type> property)
Given a GuacamoleProperty, parses and returns the value set for that
property in guacamole.properties, if any.
|
<Type> Type |
getProperty(GuacamoleProperty<Type> property,
Type defaultValue)
Given a GuacamoleProperty, parses and returns the value set for that
property in guacamole.properties, if any.
|
ProtocolInfo |
getProtocol(String name)
Returns the protocol having the given name.
|
Map<String,ProtocolInfo> |
getProtocols()
Returns a map of all available protocols, where each key is the name of
that protocol as would be passed to guacd during connection.
|
<Type> Type |
getRequiredProperty(GuacamoleProperty<Type> property)
Given a GuacamoleProperty, parses and returns the value set for that
property in guacamole.properties.
|
static final StringGuacamoleProperty GUACD_HOSTNAME
static final IntegerGuacamoleProperty GUACD_PORT
static final BooleanGuacamoleProperty GUACD_SSL
File getGuacamoleHome()
Map<String,ProtocolInfo> getProtocols()
ProtocolInfo getProtocol(String name)
name
- The name of the protocol.<Type> Type getProperty(GuacamoleProperty<Type> property) throws org.apache.guacamole.GuacamoleException
Type
- The type that the given property is parsed into.property
- The property to read from guacamole.properties.org.apache.guacamole.GuacamoleException
- If an error occurs while parsing the value
for the given property in
guacamole.properties.<Type> Type getProperty(GuacamoleProperty<Type> property, Type defaultValue) throws org.apache.guacamole.GuacamoleException
Type
- The type that the given property is parsed into.property
- The property to read from guacamole.properties.defaultValue
- The value to return if no value was given in
guacamole.properties.org.apache.guacamole.GuacamoleException
- If an error occurs while parsing the value
for the given property in
guacamole.properties.<Type> Type getRequiredProperty(GuacamoleProperty<Type> property) throws org.apache.guacamole.GuacamoleException
Type
- The type that the given property is parsed into.property
- The property to read from guacamole.properties.org.apache.guacamole.GuacamoleException
- If an error occurs while parsing the value
for the given property in
guacamole.properties, or if the property is
not specified.Copyright © 2017. All rights reserved.