Package com.dtsx.astra.sdk.utils
Class ApiResponseHttp
java.lang.Object
com.dtsx.astra.sdk.utils.ApiResponseHttp
Response HTTP.
- Author:
- Cedrick LUNVEN (@clunven)
-
Constructor Summary
ConstructorDescriptionApiResponseHttp
(String body, int code) Defaut constructor.ApiResponseHttp
(String body, int code, Map<String, String> headers) Full constructor. -
Method Summary
-
Constructor Details
-
ApiResponseHttp
Defaut constructor.- Parameters:
body
- request bodycode
- request code
-
ApiResponseHttp
Full constructor.- Parameters:
body
- request bodycode
- request codeheaders
- request headers
-
-
Method Details
-
getBody
Getter accessor for attribute 'body'.- Returns:
- current value of 'body'
-
getCode
public int getCode()Getter accessor for attribute 'code'.- Returns:
- current value of 'code'
-
getHeaders
Getter accessor for attribute 'headers'.- Returns:
- current value of 'headers'
-