Class RestClientOptions
- java.lang.Object
-
- org.opensearch.client.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-
Nested classes/interfaces inherited from interface org.opensearch.client.transport.TransportOptions
TransportOptions.BuilderImpl, TransportOptions.DefaultImpl
-
-
Constructor Summary
Constructors Constructor Description RestClientOptions(org.opensearch.client.RequestOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestClientOptions.Builderbuilder()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.opensearch.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, wait
-
Methods inherited from interface org.opensearch.client.transport.TransportOptions
with
-
-
-
-
Method Detail
-
builder
public static RestClientOptions.Builder builder()
-
restClientRequestOptions
public org.opensearch.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
public RestClientOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceTransportOptions
-
-