Class ExecutePolicyResponse
java.lang.Object
com.styra.opa.openapi.models.operations.ExecutePolicyResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionExecutePolicyResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Map<String, List<String>> headers) ExecutePolicyResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse, Map<String, List<String>> headers) -
Method Summary
Modifier and TypeMethodDescriptionstatic final ExecutePolicyResponse.Builderbuilder()HTTP response content type for this operationbooleaninthashCode()headers()Raw HTTP response; suitable for custom response parsingintHTTP response status code for this operationSuccess.toString()withContentType(String contentType) HTTP response content type for this operationwithHeaders(Map<String, List<String>> headers) withRawResponse(HttpResponse<InputStream> rawResponse) Raw HTTP response; suitable for custom response parsingwithStatusCode(int statusCode) HTTP response status code for this operationwithSuccessfulPolicyResponse(SuccessfulPolicyResponse successfulPolicyResponse) Success.withSuccessfulPolicyResponse(Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse) Success.
-
Constructor Details
-
ExecutePolicyResponse
public ExecutePolicyResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse, Map<String, List<String>> headers) -
ExecutePolicyResponse
public ExecutePolicyResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Map<String, List<String>> headers)
-
-
Method Details
-
contentType
HTTP response content type for this operation- Specified by:
contentTypein interfaceResponse
-
statusCode
public int statusCode()HTTP response status code for this operation- Specified by:
statusCodein interfaceResponse
-
rawResponse
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponsein interfaceResponse
-
successfulPolicyResponse
Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property. -
headers
-
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 -
withSuccessfulPolicyResponse
public ExecutePolicyResponse withSuccessfulPolicyResponse(Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse) Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property. -
withHeaders
-
equals
-
hashCode
public int hashCode() -
toString
-