mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-1298: Migrate to centralized declarations of common dependencies.
This commit is contained in:
		| @@ -19,6 +19,7 @@ | ||||
|  | ||||
| package org.apache.guacamole.environment; | ||||
|  | ||||
| import com.fasterxml.jackson.databind.ObjectMapper; | ||||
| import java.io.File; | ||||
| import java.io.FileInputStream; | ||||
| import java.io.FilenameFilter; | ||||
| @@ -27,7 +28,6 @@ import java.io.InputStream; | ||||
| import java.util.HashMap; | ||||
| import java.util.Map; | ||||
| import java.util.Properties; | ||||
| import org.codehaus.jackson.map.ObjectMapper; | ||||
| import org.apache.guacamole.GuacamoleException; | ||||
| import org.apache.guacamole.GuacamoleServerException; | ||||
| import org.apache.guacamole.net.auth.GuacamoleProxyConfiguration; | ||||
|   | ||||
| @@ -19,8 +19,9 @@ | ||||
|  | ||||
| package org.apache.guacamole.form; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||||
| import java.util.Collection; | ||||
| import org.codehaus.jackson.map.annotate.JsonSerialize; | ||||
|  | ||||
| /** | ||||
|  * Represents an arbitrary field, such as an HTTP parameter, the parameter of a | ||||
| @@ -30,7 +31,7 @@ import org.codehaus.jackson.map.annotate.JsonSerialize; | ||||
|  * either through the web application itself (see FormService.js) or through | ||||
|  * extensions. | ||||
|  */ | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
| @JsonInclude(value=Include.NON_NULL) | ||||
| public class Field { | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -19,12 +19,13 @@ | ||||
|  | ||||
| package org.apache.guacamole.form; | ||||
|  | ||||
| import org.codehaus.jackson.map.annotate.JsonSerialize; | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||||
|  | ||||
| /** | ||||
|  * Describes an available legal value for an enumerated field. | ||||
|  */ | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
| @JsonInclude(value=Include.NON_NULL) | ||||
| public class FieldOption { | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -19,14 +19,15 @@ | ||||
|  | ||||
| package org.apache.guacamole.form; | ||||
|  | ||||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||||
| import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||||
| import java.util.ArrayList; | ||||
| import java.util.Collection; | ||||
| import org.codehaus.jackson.map.annotate.JsonSerialize; | ||||
|  | ||||
| /** | ||||
|  * Information which describes logical set of fields. | ||||
|  */ | ||||
| @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) | ||||
| @JsonInclude(value=Include.NON_NULL) | ||||
| public class Form { | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
|  | ||||
| package org.apache.guacamole.properties; | ||||
|  | ||||
| import javax.xml.bind.DatatypeConverter; | ||||
| import com.google.common.io.BaseEncoding; | ||||
| import org.apache.guacamole.GuacamoleException; | ||||
| import org.apache.guacamole.GuacamoleServerException; | ||||
|  | ||||
| @@ -39,7 +39,7 @@ public abstract class ByteArrayProperty implements GuacamoleProperty<byte[]> { | ||||
|  | ||||
|         // Return value parsed from hex | ||||
|         try { | ||||
|             return DatatypeConverter.parseHexBinary(value); | ||||
|             return BaseEncoding.base16().decode(value); | ||||
|         } | ||||
|  | ||||
|         // Fail parse if hex invalid | ||||
|   | ||||
		Reference in New Issue
	
	Block a user