Class BooleanEndpoint<RequestT>
java.lang.Object
org.opensearch.client.transport.endpoints.SimpleEndpoint<RequestT,BooleanResponse>
org.opensearch.client.transport.endpoints.BooleanEndpoint<RequestT>
- All Implemented Interfaces:
Endpoint<RequestT,,BooleanResponse, ErrorResponse> JsonEndpoint<RequestT,BooleanResponse, ErrorResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanEndpoint(String id, Function<RequestT, String> method, Function<RequestT, String> requestUrl, Function<RequestT, Map<String, String>> queryParameters, Function<RequestT, Map<String, String>> headers, boolean hasRequestBody, JsonpDeserializer<?> responseParser) BooleanEndpoint(Function<RequestT, String> method, Function<RequestT, String> requestUrl, Function<RequestT, Map<String, String>> queryParameters, Function<RequestT, Map<String, String>> headers) -
Method Summary
Methods inherited from class org.opensearch.client.transport.endpoints.SimpleEndpoint
emptyMap, errorDeserializer, hasRequestBody, headers, method, noPathTemplateFound, pathEncode, queryParameters, requestUrl, responseDeserializer, withResponseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.transport.Endpoint
exceptionConverter
-
Constructor Details
-
BooleanEndpoint
-
BooleanEndpoint
-
-
Method Details
-
isError
public boolean isError(int statusCode) Description copied from interface:EndpointIs this status code to be considered as an error?- Specified by:
isErrorin interfaceEndpoint<RequestT,BooleanResponse, ErrorResponse> - Overrides:
isErrorin classSimpleEndpoint<RequestT,BooleanResponse>
-
getResult
public boolean getResult(int statusCode)
-