Class ApiResponseHttp

java.lang.Object
com.dtsx.astra.sdk.utils.ApiResponseHttp

public class ApiResponseHttp extends Object
Response HTTP.
Author:
Cedrick LUNVEN (@clunven)
  • Constructor Details

    • ApiResponseHttp

      public ApiResponseHttp(String body, int code)
      Defaut constructor.
      Parameters:
      body - request body
      code - request code
    • ApiResponseHttp

      public ApiResponseHttp(String body, int code, Map<String,String> headers)
      Full constructor.
      Parameters:
      body - request body
      code - request code
      headers - request headers
  • Method Details

    • getBody

      public String 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

      public Map<String,String> getHeaders()
      Getter accessor for attribute 'headers'.
      Returns:
      current value of 'headers'