Class OpenApiResponse

java.lang.Object
com.sap.cloud.sdk.services.openapi.core.OpenApiResponse

public class OpenApiResponse extends Object
Response object for OpenAPI calls containing status code
  • Constructor Details

    • OpenApiResponse

      public OpenApiResponse(@Nonnull ApiClient client)
      Create a new OpenApiResponse from an ApiClient
      Parameters:
      client - A client that was used to execute an HTTP request.
    • OpenApiResponse

      public OpenApiResponse(int statusCode)
      Create a new OpenApiResponse from an http status code.
      Parameters:
      statusCode - The status code for this http response.
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Http status code of this response.
    • getHeaders

      @Nonnull public org.springframework.util.MultiValueMap<String,String> getHeaders()
      Http headers of this response.