类 DefaultClientHttpResponse

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()
      close response InputStream.
      java.io.InputStream getBody()
      Return the body of the message as an input stream.
      Header getHeaders()
      Return the headers of this message.
      int getStatusCode()
      Return the HTTP status code.
      java.lang.String getStatusText()
      Return the HTTP status text of the response.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • response

        private org.apache.http.HttpResponse response
      • responseHeader

        private Header responseHeader
    • 构造器详细资料

      • DefaultClientHttpResponse

        public DefaultClientHttpResponse​(org.apache.http.HttpResponse response)
    • 方法详细资料

      • getBody

        public java.io.InputStream getBody()
                                    throws java.io.IOException
        从接口复制的说明: HttpClientResponse
        Return the body of the message as an input stream.
        指定者:
        getBody 在接口中 HttpClientResponse
        返回:
        String response body
        抛出:
        java.io.IOException - IOException
      • close

        public void close()
        从接口复制的说明: HttpClientResponse
        close response InputStream.
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable
        指定者:
        close 在接口中 HttpClientResponse