ClientRequestFilter is invoked.
It is ensured that all
PreInvocationInterceptors are executed before the request, in the order given by the
Priority, the higher the priority the sooner the execution. Any
RuntimeException thrown when
beforeRequest(ClientRequestContext) is being processed is accumulated and
a multi RuntimeException with other
exceptions supressed is being thrown.
For asynchronous invocation, the
PreInvocationInterceptor is invoked in the main thread, i.e. not in the thread
ExecutorService. For reactive
invocations, this depends on the provided
RxInvoker. For the default Jersey asynchronous
PreInvocationInterceptor is invoked in the
main thread, too.
ClientRequestContext.abortWith(Response) be utilized, the request abort is performed after every
PreInvocationInterceptor is processed. If multiple
PreInvocationInterceptors PreInvocationInterceptor tries to utilize
method, the second and every next throws
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.