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 classRestClientOptions.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.RequestOptionsrestClientRequestOptions()Get the wrapped Rest Client request optionsRestClientOptions.BuildertoBuilder()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
headersin interfaceTransportOptions
-
queryParameters
public java.util.Map<java.lang.String,java.lang.String> queryParameters()- Specified by:
queryParametersin 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:
onWarningsin interfaceTransportOptions
-
toBuilder
- Specified by:
toBuilderin interfaceTransportOptions
-