@Beta @Contract @ConstrainedTo(value=CLIENT) public interface InvocationBuilderListener
ClientRequestContext
.
In order for the InvocationBuilderListener to be called, the implementation of the interface needs
to be registered on the Client
the same way the ClientRequestFilter
is registered, for instance.
If multiple InvocationBuilderListeners
are to be utilized, the order of execution is driven by the Priority
,
the lower the priority value, the higher the priority, the sooner the execution.
Modifier and Type | Interface and Description |
---|---|
static interface |
InvocationBuilderListener.InvocationBuilderContext
An
Invocation.Builder subset of setter methods. |
Modifier and Type | Method and Description |
---|---|
void |
onNewBuilder(InvocationBuilderListener.InvocationBuilderContext context)
Whenever an
Invocation.Builder is created, (i.e. |
void onNewBuilder(InvocationBuilderListener.InvocationBuilderContext context)
Invocation.Builder
is created, (i.e. when
WebTarget.request()
, WebTarget.request(String...)
,
WebTarget.request(MediaType...)
is called), this method would be invoked.context
- the updated InvocationBuilderListener.InvocationBuilderContext
.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.