Class HealthResponse

java.lang.Object
com.styra.opa.openapi.models.operations.HealthResponse
All Implemented Interfaces:
Response

public class HealthResponse extends Object implements Response
  • Constructor Details

  • Method Details

    • contentType

      public String contentType()
      HTTP response content type for this operation
      Specified by:
      contentType in interface Response
    • statusCode

      public int statusCode()
      HTTP response status code for this operation
      Specified by:
      statusCode in interface Response
    • rawResponse

      public HttpResponse<InputStream> rawResponse()
      Raw HTTP response; suitable for custom response parsing
      Specified by:
      rawResponse in interface Response
    • healthyServer

      public Optional<HealthyServer> healthyServer()
      OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state.
    • builder

      public static final HealthResponse.Builder builder()
    • withContentType

      public HealthResponse withContentType(String contentType)
      HTTP response content type for this operation
    • withStatusCode

      public HealthResponse withStatusCode(int statusCode)
      HTTP response status code for this operation
    • withRawResponse

      public HealthResponse withRawResponse(HttpResponse<InputStream> rawResponse)
      Raw HTTP response; suitable for custom response parsing
    • withHealthyServer

      public HealthResponse withHealthyServer(HealthyServer healthyServer)
      OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state.
    • withHealthyServer

      public HealthResponse withHealthyServer(Optional<? extends HealthyServer> healthyServer)
      OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object