Class Rest5ClientOptions
java.lang.Object
co.elastic.clients.transport.rest5_client.Rest5ClientOptions
- All Implemented Interfaces:
TransportOptions
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRest5ClientOptions
(RequestOptions options, boolean keepResponseBodyOnException) -
Method Summary
Modifier and TypeMethodDescriptionheaders()
boolean
Iftrue
, the response body inTransportException.response().body()
is guaranteed to be replayable (i.e.static Rest5ClientOptions
of
(TransportOptions options) Called if there are warnings to determine if those warnings should fail the request.Get the wrapped Rest Client request optionsvoid
updateToken
(String token) 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
-
Rest5ClientOptions
-
-
Method Details
-
of
-
restClientRequestOptions
Get the wrapped Rest Client request options -
headers
- Specified by:
headers
in interfaceTransportOptions
-
queryParameters
- Specified by:
queryParameters
in interfaceTransportOptions
-
onWarnings
Called if there are warnings to determine if those warnings should fail the request.- Specified by:
onWarnings
in interfaceTransportOptions
-
updateToken
- Specified by:
updateToken
in interfaceTransportOptions
-
keepResponseBodyOnException
public boolean keepResponseBodyOnException()Description copied from interface:TransportOptions
Iftrue
, the response body inTransportException.response().body()
is guaranteed to be replayable (i.e. buffered), even if the original response was streamed. This allows inspecting the response body in case of error.- Specified by:
keepResponseBodyOnException
in interfaceTransportOptions
-
toBuilder
- Specified by:
toBuilder
in interfaceTransportOptions
-