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()booleanIftrue, the response body inTransportException.response().body()is guaranteed to be replayable (i.e.static Rest5ClientOptionsof(TransportOptions options) Called if there are warnings to determine if those warnings should fail the request.Get the wrapped Rest Client request optionsvoidupdateToken(String token) 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
-
Rest5ClientOptions
-
-
Method Details
-
of
-
restClientRequestOptions
Get the wrapped Rest Client request options -
headers
- Specified by:
headersin interfaceTransportOptions
-
queryParameters
- Specified by:
queryParametersin interfaceTransportOptions
-
onWarnings
Called if there are warnings to determine if those warnings should fail the request.- Specified by:
onWarningsin interfaceTransportOptions
-
updateToken
- Specified by:
updateTokenin interfaceTransportOptions
-
keepResponseBodyOnException
public boolean keepResponseBodyOnException()Description copied from interface:TransportOptionsIftrue, 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:
keepResponseBodyOnExceptionin interfaceTransportOptions
-
toBuilder
- Specified by:
toBuilderin interfaceTransportOptions
-