Class RestClientOptions
java.lang.Object
co.elastic.clients.transport.rest_client.RestClientOptions
- All Implemented Interfaces:
TransportOptions
public class RestClientOptions extends java.lang.Object implements TransportOptions
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RestClientOptions.Builder
-
Constructor Summary
Constructors Constructor Description RestClientOptions(org.elasticsearch.client.RequestOptions options)
-
Method Summary
Modifier and Type Method Description java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>>
headers()
java.util.function.Function<java.util.List<java.lang.String>,java.lang.Boolean>
onWarnings()
Called if there are warnings to determine if those warnings should fail the request.java.util.Map<java.lang.String,java.lang.String>
queryParameters()
org.elasticsearch.client.RequestOptions
restClientRequestOptions()
Get the wrapped Rest Client request optionsRestClientOptions.Builder
toBuilder()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.transport.TransportOptions
with
-
Constructor Details
-
RestClientOptions
public RestClientOptions(org.elasticsearch.client.RequestOptions options)
-
-
Method Details
-
restClientRequestOptions
public org.elasticsearch.client.RequestOptions restClientRequestOptions()Get the wrapped Rest Client request options -
headers
public java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> headers()- Specified by:
headers
in interfaceTransportOptions
-
queryParameters
public java.util.Map<java.lang.String,java.lang.String> queryParameters()- Specified by:
queryParameters
in interfaceTransportOptions
-
onWarnings
public java.util.function.Function<java.util.List<java.lang.String>,java.lang.Boolean> onWarnings()Called if there are warnings to determine if those warnings should fail the request.- Specified by:
onWarnings
in interfaceTransportOptions
-
toBuilder
- Specified by:
toBuilder
in interfaceTransportOptions
-