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 options
    RestClientOptions.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 interface TransportOptions
    • queryParameters

      public java.util.Map<java.lang.String,​java.lang.String> queryParameters()
      Specified by:
      queryParameters in interface TransportOptions
    • 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 interface TransportOptions
    • toBuilder

      public RestClientOptions.Builder toBuilder()
      Specified by:
      toBuilder in interface TransportOptions