Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interceptor on client by example #471

Merged
merged 1 commit into from
Sep 13, 2023
Merged

interceptor on client by example #471

merged 1 commit into from
Sep 13, 2023

Conversation

ivy-rew
Copy link
Member

@ivy-rew ivy-rew commented Sep 13, 2023

  • demonstrating how to track and interact with payload being sent to and fro
  • using the CxfClient bus, which is isolated per webservice-client.

Comment on lines +22 to +28
@Override
public void initialize(WebServiceClientFeatureContext context) {
Client proxy = ClientProxy.getClient(context.getBindingProvider());
proxy.getOutInterceptors().add(new CxfSendInterceptor(Phase.SEND_ENDING));
proxy.getInInterceptors().add(new CxfReceiveInterceptor(Phase.RECEIVE));
Ivy.log().info("call initiated with custom interceptors provided by "+this);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main part of the demo: showing our customers how to add interceptors just for this webservice-client ... rather than using the global Bus instance.

@ivy-rew ivy-rew requested a review from ivy-lli September 13, 2023 08:16
- demonstrating how to track and interact with payload being sent to and
fro
- using the CxfClient bus, which is isolated per webservice-client.
@ivy-rew ivy-rew marked this pull request as ready for review September 13, 2023 08:51
@ivy-rew ivy-rew merged commit 39542d2 into master Sep 13, 2023
@ivy-rew ivy-rew deleted the cxfInterceptors branch September 13, 2023 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants