Class HealthResponse
java.lang.Object
com.styra.opa.openapi.models.operations.HealthResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHealthResponse
(String contentType, int statusCode, HttpResponse<InputStream> rawResponse) HealthResponse
(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends HealthyServer> healthyServer) -
Method Summary
Modifier and TypeMethodDescriptionstatic final HealthResponse.Builder
builder()
HTTP response content type for this operationboolean
int
hashCode()
OPA service is healthy.Raw HTTP response; suitable for custom response parsingint
HTTP response status code for this operationtoString()
withContentType
(String contentType) HTTP response content type for this operationwithHealthyServer
(HealthyServer healthyServer) OPA service is healthy.withHealthyServer
(Optional<? extends HealthyServer> healthyServer) OPA service is healthy.withRawResponse
(HttpResponse<InputStream> rawResponse) Raw HTTP response; suitable for custom response parsingwithStatusCode
(int statusCode) HTTP response status code for this operation
-
Constructor Details
-
HealthResponse
public HealthResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends HealthyServer> healthyServer) -
HealthResponse
-
-
Method Details
-
contentType
HTTP response content type for this operation- Specified by:
contentType
in interfaceResponse
-
statusCode
public int statusCode()HTTP response status code for this operation- Specified by:
statusCode
in interfaceResponse
-
rawResponse
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponse
in interfaceResponse
-
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
-
withContentType
HTTP response content type for this operation -
withStatusCode
HTTP response status code for this operation -
withRawResponse
Raw HTTP response; suitable for custom response parsing -
withHealthyServer
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
-
hashCode
public int hashCode() -
toString
-