package client
- Alphabetic
- Public
- Protected
Type Members
- trait CirceDecoders extends AnyRef
- class DruidAdvancedHttpClient extends DruidClient with DruidResponseHandler
- trait DruidClient extends CirceHttpSupport with CirceDecoders with LazyLogging
- trait DruidClientBuilder extends AnyRef
- class DruidHttpClient extends DruidClient with DruidResponseHandler
- trait DruidResponseHandler extends CirceDecoders
- class HttpStatusException extends IllegalStateException
Indicates that Druid returned a non-OK HTTP status code.
Indicates that Druid returned a non-OK HTTP status code.
Note: the response entity is eagerly loaded (
HttpEntity.Strict). I chose to do so because having to drain or discard a stream on an exception object violates the Principle of Least Surprise. This class does not simply embed theHttpResponsebecause I found no way to expose the (eager loaded) fields without requiring an execution context.This class extends IllegalStateException to maintain backwards compatibility.
- class NoopRequestInterceptor extends RequestInterceptor
Forwards the request and response unmodified.
Forwards the request and response unmodified. Can be used as a default value, but is also suitable for use as a base class.
- trait RequestInterceptor extends AnyRef
Customization hook for altering the request flow in
DruidAdvancedHttpClient.Customization hook for altering the request flow in
DruidAdvancedHttpClient. This is primarily intended to handle authentication requirements. The advanced client always uses a single interceptor, which defaults to a no-op implementation. There is no support for chaining interceptors into a filter chain, but you could write a composite interceptor to overcome this. - trait RequestInterceptorBuilder extends AnyRef
Marker trait for objects that produce a
RequestInterceptor.Marker trait for objects that produce a
RequestInterceptor. One such object is specified in the scruid configuration settings. The default isNoopRequestInterceptor.
Value Members
- object DruidAdvancedHttpClient extends DruidClientBuilder
- object DruidHttpClient extends DruidClientBuilder
- object NoopRequestInterceptor extends RequestInterceptorBuilder