diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js index 006a262b4..85e934645 100644 --- a/guacamole-common-js/src/main/webapp/modules/Client.js +++ b/guacamole-common-js/src/main/webapp/modules/Client.js @@ -350,31 +350,6 @@ Guacamole.Client = function(tunnel) { tunnel.sendMessage("mouse", Math.floor(mouseState.x), Math.floor(mouseState.y), buttonMask); }; - /** - * Sets the clipboard of the remote client to the given text data. - * - * @deprecated Use createClipboardStream() instead. - * @param {String} data The data to send as the clipboard contents. - */ - this.setClipboard = function(data) { - - // Do not send requests if not connected - if (!isConnected()) - return; - - // Open stream - var stream = guac_client.createClipboardStream("text/plain"); - var writer = new Guacamole.StringWriter(stream); - - // Send text chunks - for (var i=0; i The type that the given property is parsed into. - * @param property The property to read from guacamole.properties. - * @return The parsed value of the property as read from - * guacamole.properties. - * @throws GuacamoleException If an error occurs while parsing the value - * for the given property in - * guacamole.properties. - */ - public static Type getProperty(GuacamoleProperty property) throws GuacamoleException { - - if (exception != null) - throw exception; - - return property.parseValue(properties.getProperty(property.getName())); - - } - - /** - * Given a GuacamoleProperty, parses and returns the value set for that - * property in guacamole.properties, if any. If no value is found, the - * provided default value is returned. - * - * @param The type that the given property is parsed into. - * @param property The property to read from guacamole.properties. - * @param defaultValue The value to return if no value was given in - * guacamole.properties. - * @return The parsed value of the property as read from - * guacamole.properties, or the provided default value if no value - * was found. - * @throws GuacamoleException If an error occurs while parsing the value - * for the given property in - * guacamole.properties. - */ - public static Type getProperty(GuacamoleProperty property, - Type defaultValue) throws GuacamoleException { - - Type value = getProperty(property); - if (value == null) - return defaultValue; - - return value; - - } - - /** - * Given a GuacamoleProperty, parses and returns the value set for that - * property in guacamole.properties. An exception is thrown if the value - * is not provided. - * - * @param The type that the given property is parsed into. - * @param property The property to read from guacamole.properties. - * @return The parsed value of the property as read from - * guacamole.properties. - * @throws GuacamoleException If an error occurs while parsing the value - * for the given property in - * guacamole.properties, or if the property is - * not specified. - */ - public static Type getRequiredProperty(GuacamoleProperty property) - throws GuacamoleException { - - Type value = getProperty(property); - if (value == null) - throw new GuacamoleServerException("Property " + property.getName() + " is required."); - - return value; - - } -}