aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/frontend/client/Client.java
diff options
context:
space:
mode:
authorMatt Windsor <mattwindsor@btinternet.com>2011-03-23 15:16:34 +0000
committerMatt Windsor <mattwindsor@btinternet.com>2011-03-23 15:16:34 +0000
commitcb0a78131286b1a312351308d2cb6e59ed122fef (patch)
tree280ff409c85cc4e80e43a3ed14f648d15d077397 /src/uk/org/ury/frontend/client/Client.java
parent5e6649f0524a28e5d53aea174da5e512e614f377 (diff)
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.
Diffstat (limited to 'src/uk/org/ury/frontend/client/Client.java')
-rw-r--r--src/uk/org/ury/frontend/client/Client.java18
1 files changed, 17 insertions, 1 deletions
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<String, Object> get(String file) throws DecodeFailureException {
URL url = null;
URLConnection uc = null;
String result = "";