类 BceHttpResponse
- java.lang.Object
-
- com.baidubce.http.BceHttpResponse
-
public class BceHttpResponse extends Object
Represents an HTTP response returned by a BCE service in response to a service request.
-
-
构造器概要
构造器 构造器 说明 BceHttpResponse(org.apache.http.client.methods.CloseableHttpResponse httpResponse)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 InputStreamgetContent()StringgetHeader(String name)longgetHeaderAsLong(String name)DategetHeaderAsRfc822Date(String name)Map<String,String>getHeaders()org.apache.http.client.methods.CloseableHttpResponsegetHttpResponse()intgetStatusCode()StringgetStatusText()
-
-
-
构造器详细资料
-
BceHttpResponse
public BceHttpResponse(org.apache.http.client.methods.CloseableHttpResponse httpResponse) throws IOException- 抛出:
IOException
-
-
方法详细资料
-
getHeaderAsLong
public long getHeaderAsLong(String name)
-
getContent
public InputStream getContent()
-
getStatusText
public String getStatusText()
-
getStatusCode
public int getStatusCode()
-
getHttpResponse
public org.apache.http.client.methods.CloseableHttpResponse getHttpResponse()
-
-