H - The deserialized type of the response headers.T - The deserialized type of the response value, available from Response.getValue().public class ResponseBase<H,T> extends Object implements Response<T>
| Constructor and Description |
|---|
ResponseBase(HttpRequest request,
int statusCode,
HttpHeaders headers,
T value,
H deserializedHeaders)
Create ResponseBase.
|
| Modifier and Type | Method and Description |
|---|---|
H |
getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type H.
|
HttpHeaders |
getHeaders()
Get the headers from the HTTP response.
|
HttpRequest |
getRequest()
Get the HTTP request which resulted in this response.
|
int |
getStatusCode()
Get the HTTP response status code.
|
T |
getValue() |
public ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)
request - the request which resulted in this responsestatusCode - the status code of the HTTP responseheaders - the headers of the HTTP responsedeserializedHeaders - the deserialized headers of the HTTP responsevalue - the deserialized valuepublic HttpRequest getRequest()
ResponsegetRequest in interface Response<T>public int getStatusCode()
getStatusCode in interface Response<T>public HttpHeaders getHeaders()
getHeaders in interface Response<T>public H getDeserializedHeaders()
Copyright © 2019 Microsoft Corporation. All rights reserved.