T - The type of responseData that is deserialized from response bodypublic class ApiResponse<T> extends Object implements ServiceResponseData<T>
| Constructor and Description |
|---|
ApiResponse(int statusCode,
Map<String,List<String>> headers) |
ApiResponse(int statusCode,
Map<String,List<String>> headers,
T data) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
getHeaders() |
T |
getResponseData() |
int |
getStatusCode() |
public ApiResponse(int statusCode,
Map<String,List<String>> headers)
statusCode - The status code of HTTP responseheaders - The headers of HTTP responsepublic int getStatusCode()
getStatusCode in interface ServiceResponseData<T>public Map<String,List<String>> getHeaders()
getHeaders in interface ServiceResponseData<T>public T getResponseData()
getResponseData in interface ServiceResponseData<T>Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries