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)
Creates a
ResponseBase . |
Modifier and Type | Method and Description |
---|---|
H |
getDeserializedHeaders()
Get the headers from the HTTP response, transformed into the header type,
H . |
HttpHeaders |
getHeaders()
Gets the headers from the HTTP response.
|
HttpRequest |
getRequest()
Gets The request which resulted in this
ResponseBase . |
int |
getStatusCode()
Gets the HTTP response status code.
|
T |
getValue()
Gets the deserialized value of the HTTP response.
|
public ResponseBase(HttpRequest request, int statusCode, HttpHeaders headers, T value, H deserializedHeaders)
ResponseBase
.request
- The HTTP request which resulted in this response.statusCode
- The status code of the HTTP response.headers
- The headers of the HTTP response.deserializedHeaders
- The deserialized headers of the HTTP response.value
- The deserialized value of the HTTP response.public HttpRequest getRequest()
ResponseBase
.getRequest
in interface Response<T>
ResponseBase
.public int getStatusCode()
getStatusCode
in interface Response<T>
public HttpHeaders getHeaders()
getHeaders
in interface Response<T>
public H getDeserializedHeaders()
H
.H
, deserialized from the HTTP response headers.Copyright © 2019 Microsoft Corporation. All rights reserved.