Package org.apache.guacamole.protocol
Class GuacamoleClientInformation
- java.lang.Object
-
- org.apache.guacamole.protocol.GuacamoleClientInformation
-
public class GuacamoleClientInformation extends Object
An abstract representation of Guacamole client information, including all information required by the Guacamole protocol during the preamble.
-
-
Constructor Summary
Constructors Constructor Description GuacamoleClientInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAudioMimetypes()
Returns the list of audio mimetypes supported by the client.List<String>
getImageMimetypes()
Returns the list of image mimetypes supported by the client.int
getOptimalResolution()
Returns the resolution of the screen if the optimal width and height are used, in DPI.int
getOptimalScreenHeight()
Returns the optimal screen height requested by the client, in pixels.int
getOptimalScreenWidth()
Returns the optimal screen width requested by the client, in pixels.String
getTimezone()
Return the timezone as reported by the client, or null if the timezone is not set.List<String>
getVideoMimetypes()
Returns the list of video mimetypes supported by the client.void
setOptimalResolution(int optimalResolution)
Sets the resolution of the screen if the optimal width and height are used, in DPI.void
setOptimalScreenHeight(int optimalScreenHeight)
Sets the client's optimal screen height.void
setOptimalScreenWidth(int optimalScreenWidth)
Sets the client's optimal screen width.void
setTimezone(String timezone)
Set the string value of the timezone, or null if the timezone will not be provided by the client.
-
-
-
Method Detail
-
getOptimalScreenWidth
public int getOptimalScreenWidth()
Returns the optimal screen width requested by the client, in pixels.- Returns:
- The optimal screen width requested by the client, in pixels.
-
setOptimalScreenWidth
public void setOptimalScreenWidth(int optimalScreenWidth)
Sets the client's optimal screen width.- Parameters:
optimalScreenWidth
- The optimal screen width of the client.
-
getOptimalScreenHeight
public int getOptimalScreenHeight()
Returns the optimal screen height requested by the client, in pixels.- Returns:
- The optimal screen height requested by the client, in pixels.
-
setOptimalScreenHeight
public void setOptimalScreenHeight(int optimalScreenHeight)
Sets the client's optimal screen height.- Parameters:
optimalScreenHeight
- The optimal screen height of the client.
-
getOptimalResolution
public int getOptimalResolution()
Returns the resolution of the screen if the optimal width and height are used, in DPI.- Returns:
- The optimal screen resolution.
-
setOptimalResolution
public void setOptimalResolution(int optimalResolution)
Sets the resolution of the screen if the optimal width and height are used, in DPI.- Parameters:
optimalResolution
- The optimal screen resolution in DPI.
-
getAudioMimetypes
public List<String> getAudioMimetypes()
Returns the list of audio mimetypes supported by the client. To add or removed supported mimetypes, the list returned by this function can be modified.- Returns:
- The set of audio mimetypes supported by the client.
-
getVideoMimetypes
public List<String> getVideoMimetypes()
Returns the list of video mimetypes supported by the client. To add or removed supported mimetypes, the list returned by this function can be modified.- Returns:
- The set of video mimetypes supported by the client.
-
getImageMimetypes
public List<String> getImageMimetypes()
Returns the list of image mimetypes supported by the client. To add or removed supported mimetypes, the list returned by this function can be modified.- Returns:
- The set of image mimetypes supported by the client.
-
getTimezone
public String getTimezone()
Return the timezone as reported by the client, or null if the timezone is not set. Valid timezones are specified in IANA zone key format, also known as Olson time zone database or TZ Database.- Returns:
- A string value of the timezone reported by the client.
-
setTimezone
public void setTimezone(String timezone)
Set the string value of the timezone, or null if the timezone will not be provided by the client. Valid timezones are specified in IANA zone key format (aka Olson time zone database or tz database).- Parameters:
timezone
- The string value of the timezone reported by the client, in tz database format, or null if the timezone is not provided by the client.
-
-