}.getType());
}
public FileMessage retrieve(Long id) throws HttpResponseException,
IOException {
URLBuilder builder = new URLBuilder(getDc().getHostname());
builder.add(getDc().getEndpoint());
builder.add(getAlias());
builder.add(id);
builder.addQuery("file_contents", 0); // Do not return the file contents (base64)
HttpGet method = new HttpGet(builder.toURI());
ResponseHandler<String> handler = new BasicResponseHandler();
String response = getDc().getHttpClient().execute(method, handler);
return new Gson().fromJson(response, FileMessage.class);