Package sh.ory
Class ApiResponse<T>
java.lang.Object
sh.ory.ApiResponse<T>
public class ApiResponse<T> extends Object
API response returned by API call.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TgetData()Get thedata.Map<String,List<String>>getHeaders()Get theheaders.intgetStatusCode()Get thestatus code.
-
Constructor Details
-
ApiResponse
Constructor for ApiResponse.
- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP response
-
ApiResponse
Constructor for ApiResponse.
- Parameters:
statusCode- The status code of HTTP responseheaders- The headers of HTTP responsedata- The object deserialized from response bod
-
-
Method Details
-
getStatusCode
public int getStatusCode()Get the
status code.- Returns:
- the status code
-
getHeaders
Get the
headers.- Returns:
- a
Mapof headers
-
getData
Get the
data.- Returns:
- the data
-