你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResponseBase<H,T> Class
- java.
lang. Object - com.
azure. core. http. rest. ResponseBase<H,T>
- com.
Type Parameters
- H
The deserialized type of the response headers.
- T
The deserialized type of the response value, available from Response#getValue().
Implements
public class ResponseBase<H,T>
implements Response<T>
The response of a REST request.
Constructor Summary
Constructor | Description |
---|---|
ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders) |
Creates a ResponseBase<H,T>. |
Method Summary
Modifier and Type | Method and Description |
---|---|
H |
getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type, |
Http |
getHeaders()
Gets the headers from the HTTP response. |
Http |
getRequest()
Gets The request which resulted in this ResponseBase<H,T>. |
int |
getStatusCode()
Gets the HTTP response status code. |
T |
getValue()
Gets the deserialized value of the HTTP response. |
Methods inherited from java.lang.Object
Constructor Details
ResponseBase
public ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)
Creates a ResponseBase<H,T>.
Parameters:
Method Details
getDeserializedHeaders
public H getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type, H
.
Returns:
H
, deserialized from the HTTP response headers.getHeaders
public HttpHeaders getHeaders()
Gets the headers from the HTTP response.
getRequest
public HttpRequest getRequest()
Gets The request which resulted in this ResponseBase<H,T>.
Returns:
getStatusCode
public int getStatusCode()
Gets the HTTP response status code.
getValue
public T getValue()
Gets the deserialized value of the HTTP response.