uk.org.ury.frontend.client
Class Client

java.lang.Object
  extended by uk.org.ury.frontend.client.Client

public class Client
extends java.lang.Object

An implementation of a client to communicate with the URY Server.

Author:
Matt Windsor

Constructor Summary
Client()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> get(java.lang.String file)
          Get a raw response from the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client()
Method Detail

get

public java.util.Map<java.lang.String,java.lang.Object> get(java.lang.String file)
                                                     throws DecodeFailureException
Get a raw response from the server.

Parameters:
file - The "file", including path and query string, to fetch from the server.
Returns:
The response from the server, as a key-value map.
Throws:
DecodeFailureException - if the decode failed.