com.restfb.batch
Class BatchResponse

java.lang.Object
  extended by 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 Summary
BatchResponse(Integer code, List<BatchHeader> headers, String body)
          Creates a batch response with the given HTTP response status code, headers, and JSON body.
 
Method Summary
 boolean equals(Object that)
           
 String getBody()
          The HTTP response body JSON.
 Integer getCode()
          The HTTP status code for this response.
 List<BatchHeader> getHeaders()
          The HTTP response headers.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object that)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getCode

public Integer getCode()
The HTTP status code for this response.

Returns:
The HTTP status code for this response.

getBody

public String getBody()
The HTTP response body JSON.

Returns:
The HTTP response body JSON.

getHeaders

public List<BatchHeader> getHeaders()
The HTTP response headers.

Returns:
The HTTP response headers.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.