Uses of Interface
com.shri.restinpeace.interceptor.RequestInterceptor
Packages that use RequestInterceptor
Package
Description
-
Uses of RequestInterceptor in com.shri.restinpeace
Methods in com.shri.restinpeace that return types with arguments of type RequestInterceptorModifier and TypeMethodDescriptionRipClientConfig.getInterceptors()Returns this client's own interceptors.Methods in com.shri.restinpeace with parameters of type RequestInterceptorModifier and TypeMethodDescriptionstatic voidRIP.addInterceptor(RequestInterceptor interceptor) Registers a global hook into every request/response made through RIP - seeRequestInterceptorfor what it can and can't do.static voidRIP.removeInterceptor(RequestInterceptor interceptor) Removes one previously registered global interceptor by identity, leaving every other registered interceptor - including other instances of the same class - untouched.Method parameters in com.shri.restinpeace with type arguments of type RequestInterceptorModifier and TypeMethodDescriptionRipClientConfig.Builder.interceptors(List<RequestInterceptor> interceptors) Sets this client's own interceptors, run in addition to (not instead of) every globally registeredinterceptor- for a concern specific to this one client (e.g. this service's own auth scheme) instead of every call RIP ever makes. -
Uses of RequestInterceptor in com.shri.restinpeace.interceptor
Classes in com.shri.restinpeace.interceptor that implement RequestInterceptorModifier and TypeClassDescriptionclassPre-built interceptor that attaches a fresh correlation/request ID to every request - useful for tracing a call across service boundaries or correlating client-side logs with server-side logs.classPre-built interceptor that injects one or more headers into every request - the common "attach an auth token (or a batch of fixed headers) to every call" use case.classPre-built interceptor that logs a line before a request goes out and another when its response comes back, including the elapsed time.classPre-built interceptor that times every request and reports it, once its response comes back, to aMetricsSink- the metrics counterpart ofLoggingInterceptor, following the exact same "bring your own sink" shape so RIP doesn't have to depend on Micrometer or any other metrics library to support one.classALoggingInterceptor-style pre-built interceptor that also logs the request and response bodies, masking a configured set of field names (case-insensitively) instead of printing them verbatim - so logging bodies is safe by default instead of a footgun. -
Uses of RequestInterceptor in com.shri.restinpeace.internal
Methods in com.shri.restinpeace.internal with parameters of type RequestInterceptorModifier and TypeMethodDescriptionstatic voidRequestExecutor.addInterceptor(RequestInterceptor interceptor) Registers a global interceptor applied to every request/response made through RIP.static voidRequestExecutor.removeInterceptor(RequestInterceptor interceptor) Removes one previously registered global interceptor by identity.