From cb0a78131286b1a312351308d2cb6e59ed122fef Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Wed, 23 Mar 2011 15:16:34 +0000 Subject: common: Moved from json-simple to jackson as JSON backend; changes include less confusing decoder code and the possibility to migrate to decoding/encoding directly to object representations. backend: Fixed JSON encoding code which was directly calling JSON backend instead of using ProtocolUtils. --- src/uk/org/ury/frontend/client/Client.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/uk/org/ury/frontend/client/Client.java') diff --git a/src/uk/org/ury/frontend/client/Client.java b/src/uk/org/ury/frontend/client/Client.java index 9606d89..bbf0001 100644 --- a/src/uk/org/ury/frontend/client/Client.java +++ b/src/uk/org/ury/frontend/client/Client.java @@ -1,3 +1,14 @@ +/* + * Client.java + * ----------- + * + * Part of the URY Frontend Platform + * + * V0.00 2011/03/23 + * + * (C) 2011 URY Computing + */ + package uk.org.ury.frontend.client; import java.io.BufferedReader; @@ -13,6 +24,11 @@ import java.util.Map; import uk.org.ury.common.protocol.ProtocolUtils; import uk.org.ury.common.protocol.exceptions.DecodeFailureException; +/** + * An implementation of a client to communicate with the URY Server. + * + * @author Matt Windsor + */ public class Client { /** * Get a raw response from the server. @@ -26,7 +42,7 @@ public class Client { * @throws DecodeFailureException * if the decode failed. */ - public Map get(String file) throws DecodeFailureException { + public Map get(String file) throws DecodeFailureException { URL url = null; URLConnection uc = null; String result = ""; -- cgit v1.2.3