Class HttpComponent4_1Response

  • All Implemented Interfaces:
    HttpMessage, HttpResponse

    public class HttpComponent4_1Response
    extends AbstractHttpResponse
    HttpComponent4 Response:Requires Apache HttpComponents 4.2 or lower
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • HttpComponent4_1Response

        public HttpComponent4_1Response​(org.apache.http.HttpResponse httpResponse,
                                        byte[] content)
                                 throws IOException
        Throws:
        IOException
    • Method Detail

      • getHeaders

        public HttpHeaders getHeaders()
        Description copied from interface: HttpMessage
        HTTP报头
        Returns:
      • getProtocol

        public HttpVersion getProtocol()
        Description copied from interface: HttpResponse
        HTTP协议
        Returns:
      • getStatus

        public HttpStatus getStatus()
        Description copied from interface: HttpResponse
        响应状态
        Returns:
      • close

        public void close()
        Description copied from interface: HttpResponse
        释放资源