org.apache.cxf.binding.Binding.getOutFaultInterceptors()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.apache.cxf.binding.Binding.getOutFaultInterceptors()方法的一些代码示例,展示了Binding.getOutFaultInterceptors()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.getOutFaultInterceptors()方法的具体详情如下:
包路径:org.apache.cxf.binding.Binding
类名称:Binding
方法名:getOutFaultInterceptors

Binding.getOutFaultInterceptors介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

protected void initializeInterceptors(Exchange ex, PhaseInterceptorChain chain) {
  Endpoint e = ex.get(Endpoint.class);
  Client c = ex.get(Client.class);
  chain.add(getBus().getOutFaultInterceptors());
  if (c != null) {
    chain.add(c.getOutFaultInterceptors());
  }
  chain.add(e.getService().getOutFaultInterceptors());
  chain.add(e.getOutFaultInterceptors());
  chain.add(e.getBinding().getOutFaultInterceptors());
  if (e.getService().getDataBinding() instanceof InterceptorProvider) {
    chain.add(((InterceptorProvider)e.getService().getDataBinding()).getOutFaultInterceptors());
  }
  
  addToChain(chain, ex.getInMessage());
  addToChain(chain, ex.getOutFaultMessage());
}
private void addToChain(PhaseInterceptorChain chain, Message m) {

代码示例来源:origin: apache/cxf

protected void initializeInterceptors(Exchange ex, PhaseInterceptorChain chain) {
  Endpoint e = ex.getEndpoint();
  Client c = ex.get(Client.class);
  chain.add(getBus().getOutFaultInterceptors());
  if (c != null) {
    chain.add(c.getOutFaultInterceptors());
  }
  chain.add(e.getService().getOutFaultInterceptors());
  chain.add(e.getOutFaultInterceptors());
  chain.add(e.getBinding().getOutFaultInterceptors());
  if (e.getService().getDataBinding() instanceof InterceptorProvider) {
    chain.add(((InterceptorProvider)e.getService().getDataBinding()).getOutFaultInterceptors());
  }
  addToChain(chain, ex.getInMessage());
  addToChain(chain, ex.getOutFaultMessage());
}
private void addToChain(PhaseInterceptorChain chain, Message m) {

代码示例来源:origin: org.apache.cxf/cxf-api

protected void initializeInterceptors(Exchange ex, PhaseInterceptorChain chain) {
  Endpoint e = ex.get(Endpoint.class);
  Client c = ex.get(Client.class);
  chain.add(getBus().getOutFaultInterceptors());
  if (c != null) {
    chain.add(c.getOutFaultInterceptors());
  }
  chain.add(e.getService().getOutFaultInterceptors());
  chain.add(e.getOutFaultInterceptors());
  chain.add(e.getBinding().getOutFaultInterceptors());
  if (e.getService().getDataBinding() instanceof InterceptorProvider) {
    chain.add(((InterceptorProvider)e.getService().getDataBinding()).getOutFaultInterceptors());
  }
  
  addToChain(chain, ex.getInMessage());
  addToChain(chain, ex.getOutFaultMessage());
}
private void addToChain(PhaseInterceptorChain chain, Message m) {

代码示例来源:origin: org.apache.cxf/cxf-core

protected void initializeInterceptors(Exchange ex, PhaseInterceptorChain chain) {
  Endpoint e = ex.getEndpoint();
  Client c = ex.get(Client.class);
  chain.add(getBus().getOutFaultInterceptors());
  if (c != null) {
    chain.add(c.getOutFaultInterceptors());
  }
  chain.add(e.getService().getOutFaultInterceptors());
  chain.add(e.getOutFaultInterceptors());
  chain.add(e.getBinding().getOutFaultInterceptors());
  if (e.getService().getDataBinding() instanceof InterceptorProvider) {
    chain.add(((InterceptorProvider)e.getService().getDataBinding()).getOutFaultInterceptors());
  }
  addToChain(chain, ex.getInMessage());
  addToChain(chain, ex.getOutFaultMessage());
}
private void addToChain(PhaseInterceptorChain chain, Message m) {

代码示例来源:origin: org.apache.servicemix/servicemix-cxf-se

removeInterceptor(ClientProxy.getClient(proxy).getEndpoint().getBinding().getOutInterceptors(), 
  "SoapOutInterceptor");
removeInterceptor(ClientProxy.getClient(proxy).getEndpoint().getBinding().getOutFaultInterceptors(), 
  "SoapOutInterceptor");
removeInterceptor(ClientProxy.getClient(proxy).getEndpoint().getBinding().getOutInterceptors(), 
ClearClientResponseContextInterceptor clearClientResponseContextInterceptor = new ClearClientResponseContextInterceptor(ClientProxy.getClient(proxy));
ClientProxy.getClient(proxy).getEndpoint().getBinding().getOutInterceptors().add(clearClientResponseContextInterceptor);
ClientProxy.getClient(proxy).getEndpoint().getBinding().getOutFaultInterceptors().add(clearClientResponseContextInterceptor);

代码示例来源:origin: org.apache.servicemix/servicemix-cxf-se

removeInterceptor(server.getEndpoint().getBinding().getInFaultInterceptors(), "ReadHeadersInterceptor");
removeInterceptor(server.getEndpoint().getBinding().getOutInterceptors(), "SoapOutInterceptor");
removeInterceptor(server.getEndpoint().getBinding().getOutFaultInterceptors(), "SoapOutInterceptor");
removeInterceptor(server.getEndpoint().getBinding().getOutInterceptors(), "StaxOutInterceptor");

相关文章