Package com.restfb

Class WebRequestor.Response

java.lang.Object
com.restfb.WebRequestor.Response
Enclosing interface:
WebRequestor

public static class WebRequestor.Response extends Object
Encapsulates an HTTP response body and status code.
Author:
Mark Allen
  • Constructor Details

    • Response

      public Response(Integer statusCode, String body)
      Creates a response with the given HTTP status code and response body as text.
      Parameters:
      statusCode - The HTTP status code of the response.
      body - The response body as text.
    • Response

      public Response(Integer statusCode, String body, DebugHeaderInfo debugHeaderInfo)
      Creates a response with the given HTTP status code, response body and debug header info.
      Parameters:
      statusCode - The HTTP status code of the response.
      body - The response body as text.
      debugHeaderInfo - debug info parsed from the headers (may be null)
    • Response

      public Response(Integer statusCode, String body, DebugHeaderInfo debugHeaderInfo, Map<String,List<String>> headers)
      Creates a response with status, body, debug info and headers.
  • Method Details