Class BooleanEndpoint<RequestT>
java.lang.Object
co.elastic.clients.transport.endpoints.EndpointBase<RequestT,BooleanResponse>
co.elastic.clients.transport.endpoints.BooleanEndpoint<RequestT>
- All Implemented Interfaces:
Endpoint<RequestT,BooleanResponse, ErrorResponse>
-
Field Summary
Fields inherited from class co.elastic.clients.transport.endpoints.EndpointBase
body, headers, id, method, pathParameters, queryParameters, requestUrl -
Constructor Summary
ConstructorsConstructorDescriptionBooleanEndpoint(String id, Function<RequestT, String> method, Function<RequestT, String> requestUrl, Function<RequestT, Map<String, String>> pathParameters, Function<RequestT, Map<String, String>> queryParameters, Function<RequestT, Map<String, String>> headers, boolean hasRequestBody, Object ignored) -
Method Summary
Methods inherited from class co.elastic.clients.transport.endpoints.EndpointBase
body, emptyMap, errorDeserializer, headers, id, method, noPathTemplateFound, pathEncode, pathParameters, queryParameters, requestUrl, returnSelf, withResponseDeserializer
-
Constructor Details
-
BooleanEndpoint
public BooleanEndpoint(String id, Function<RequestT, String> method, Function<RequestT, String> requestUrl, Function<RequestT, Map<String, String>> pathParameters, Function<RequestT, Map<String, String>> queryParameters, Function<RequestT, Map<String, String>> headers, boolean hasRequestBody, Object ignored)
-
-
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 classEndpointBase<RequestT,BooleanResponse>
-
getResult
public boolean getResult(int statusCode)
-