Package co.elastic.clients.transport
Class DefaultTransportOptions
java.lang.Object
co.elastic.clients.transport.DefaultTransportOptions
- All Implemented Interfaces:
TransportOptions
Default implementation of
TransportOptions. Extensions can use it as a base class to provide additional features.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefaultTransportOptions.AbstractBuilder<BuilderT extends DefaultTransportOptions.AbstractBuilder<BuilderT>>static class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultTransportOptions(HeaderMap headers, Map<String, String> parameters, Function<List<String>, Boolean> onWarnings) DefaultTransportOptions(HeaderMap headers, Map<String, String> parameters, Function<List<String>, Boolean> onWarnings, boolean keepResponseBodyOnException) -
Method Summary
Modifier and TypeMethodDescriptionheaders()booleanIftrue, the response body inTransportException.response().body()is guaranteed to be replayable (i.e.static DefaultTransportOptionsof(TransportOptions options) voidupdateToken(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
-
Field Details
-
EMPTY
-
-
Constructor Details
-
DefaultTransportOptions
public DefaultTransportOptions() -
DefaultTransportOptions
-
DefaultTransportOptions
-
DefaultTransportOptions
-
-
Method Details
-
of
-
headers
- Specified by:
headersin interfaceTransportOptions
-
queryParameters
- Specified by:
queryParametersin interfaceTransportOptions
-
onWarnings
- 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
-