是否可以使用一个命令为服务器中所有客户端的拦截器链添加CXF拦截器?

时间:2019-09-26 13:07:10

标签: cxf cxf-client

我正在为每个这样的客户端的拦截器链添加CXF拦截器

Client client = ClientProxy.getClient(port);
Endpoint endpoint = client.getEndpoint();
endpoint.getOutInterceptors().add(new MyInterceptor(Phase.SEND));

port是客户端使用的服务端口。

是否可以使用一个命令为服务器中所有客户端的拦截器链添加MyInterceptor拦截器?

0 个答案:

没有答案
相关问题