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 Details

    • jsonMapper

      public final com.fasterxml.jackson.databind.ObjectMapper jsonMapper
  • Constructor Details

  • Method Details

    • as

      public <T> T as​(Class<T> clazz)
    • asMap

      public Map<?,​?> asMap()
    • asList

      public List<?> 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.