public class RestResponse extends Object
Wraps a ClientResponse response and provides utility methods to get back the result as a Map or as a JsonNode.
ClientResponse
Map
JsonNode
RestResponse(com.sun.jersey.api.client.ClientResponse clientResponse)
org.codehaus.jackson.JsonNode
asJson()
Map<String,Object>
asMap()
com.sun.jersey.api.client.ClientResponse
getClientResponse()
int
getStatus()
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RestResponse(com.sun.jersey.api.client.ClientResponse clientResponse)
public com.sun.jersey.api.client.ClientResponse getClientResponse()
public int getStatus()
public org.codehaus.jackson.JsonNode asJson()
public Map<String,Object> asMap()
Copyright © 2015 Nuxeo SA. All rights reserved.