Package com.force.api
Class ResourceRepresentation
java.lang.Object
com.force.api.ResourceRepresentation
public class ResourceRepresentation extends Object
A representation of a resource in the Force.com REST API. The format of the representation
depends on what you passed to Resource when you requested it.
- Author:
- jjoergensen
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.ObjectMapperjsonMapper -
Constructor Summary
Constructors Constructor Description ResourceRepresentation(HttpResponse value)ResourceRepresentation(HttpResponse value, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Field Details
-
jsonMapper
public final com.fasterxml.jackson.databind.ObjectMapper jsonMapper
-
-
Constructor Details
-
ResourceRepresentation
-
ResourceRepresentation
public ResourceRepresentation(HttpResponse value, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
as
-
asMap
-
asList
-
getResponseCode
public int getResponseCode()- Returns:
- the HTTP response code of the underlying request if it was between 200 and 299. Any code outside of that range will result in an ApiException being thrown before a ResourceRepresentation is instantiated.
-