Class BasicHttpResponse

java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.message.BasicHttpResponse
All Implemented Interfaces:
HttpMessage, HttpResponse

public class BasicHttpResponse extends AbstractHttpMessage implements HttpResponse
Basic implementation of HttpResponse.
Since:
4.0
See Also:
  • Constructor Details

    • BasicHttpResponse

      public BasicHttpResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale)
      Creates a new response. This is the constructor to which all others map.
      Parameters:
      statusline - the status line
      catalog - the reason phrase catalog, or null to disable automatic reason phrase lookup
      locale - the locale for looking up reason phrases, or null for the system locale
    • BasicHttpResponse

      public BasicHttpResponse(StatusLine statusline)
      Creates a response from a status line. The response will not have a reason phrase catalog and use the system default locale.
      Parameters:
      statusline - the status line
    • BasicHttpResponse

      public BasicHttpResponse(ProtocolVersion ver, int code, String reason)
      Creates a response from elements of a status line. The response will not have a reason phrase catalog and use the system default locale.
      Parameters:
      ver - the protocol version of the response
      code - the status code of the response
      reason - the reason phrase to the status code, or null
  • Method Details