T - The deserialized type of the response content.public class SimpleResponse<T> extends Object implements Response<T>
| Constructor and Description |
|---|
SimpleResponse(HttpRequest request,
int statusCode,
HttpHeaders headers,
T value)
Creates a SimpleResponse.
|
SimpleResponse(Response<?> response,
T value)
Creates a SimpleResponse from a response and a value.
|
| Modifier and Type | Method and Description |
|---|---|
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 SimpleResponse(HttpRequest request, int statusCode, HttpHeaders headers, T value)
request - the request which resulted in this responsestatusCode - the status code of the HTTP responseheaders - the headers of the HTTP responsevalue - the deserialized valuepublic HttpRequest getRequest()
ResponsegetRequest in interface Response<T>public int getStatusCode()
ResponsegetStatusCode in interface Response<T>public HttpHeaders getHeaders()
getHeaders in interface Response<T>Copyright © 2019 Microsoft Corporation. All rights reserved.