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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應