Class BatchResponse

java.lang.Object
com.restfb.batch.BatchResponse

public class BatchResponse
extends Object
Encapsulates a discrete part of an entire Facebook Batch API response.
Since:
1.6.5
Author:
Mark Allen
  • Constructor Details

    • BatchResponse

      protected BatchResponse()
      "Magic" no-argument constructor so we can reflectively make instances of this class with DefaultJsonMapper, but normal client code cannot.
    • BatchResponse

      public BatchResponse​(Integer code, List<BatchHeader> headers, String body)
      Creates a batch response with the given HTTP response status code, headers, and JSON body.
      Parameters:
      code - HTTP status code.
      headers - HTTP headers.
      body - JSON body.
  • Method Details