Class ApiResponse<T>

java.lang.Object
dev.restate.admin.client.ApiResponse<T>
Type Parameters:
T - The type of data that is deserialized from response body

public class ApiResponse<T> extends Object
API response returned by API call.
  • Constructor Details

    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers)
      Parameters:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
    • ApiResponse

      public ApiResponse(int statusCode, Map<String,List<String>> headers, T data)
      Parameters:
      statusCode - The status code of HTTP response
      headers - The headers of HTTP response
      data - The object deserialized from response bod
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getHeaders

      public Map<String,List<String>> getHeaders()
    • getData

      public T getData()