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

x33g5p2x  于2022-01-18 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(188)

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

Client.getOutFaultInterceptors介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

private void initIntercepors(Client client, AbstractBasicInterceptorProvider clientFact) {
  client.getInInterceptors().addAll(clientFact.getInInterceptors());
  client.getOutInterceptors().addAll(clientFact.getOutInterceptors());
  client.getInFaultInterceptors().addAll(clientFact.getInFaultInterceptors());
  client.getOutFaultInterceptors().addAll(clientFact.getOutFaultInterceptors());
}

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

public List<Interceptor<? extends Message>> getOutFaultInterceptors() {
  if (client != null) {
    return client.getOutFaultInterceptors();
  }
  return outFault;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

public List<Interceptor<? extends Message>> getOutFaultInterceptors() {
  if (client != null) {
    return client.getOutFaultInterceptors();
  }
  return outFault;
}

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

private void initIntercepors(Client client, AbstractBasicInterceptorProvider clientFact) {
  client.getInInterceptors().addAll(clientFact.getInInterceptors());
  client.getOutInterceptors().addAll(clientFact.getOutInterceptors());
  client.getInFaultInterceptors().addAll(clientFact.getInFaultInterceptors());
  client.getOutFaultInterceptors().addAll(clientFact.getOutFaultInterceptors());
}

代码示例来源:origin: org.mule.modules/mule-module-cxf

protected void addMuleInterceptors()
{
  if (enableMuleSoapHeaders && !configuration.isEnableMuleSoapHeaders())
  {
    client.getInInterceptors().add(new MuleHeadersInInterceptor());
    client.getInFaultInterceptors().add(new MuleHeadersInInterceptor());
    client.getOutInterceptors().add(new MuleHeadersOutInterceptor());
    client.getOutFaultInterceptors().add(new MuleHeadersOutInterceptor());
  }
}

代码示例来源:origin: org.openehealth.ipf.commons/ipf-commons-ihe-hl7v3

@Override
  protected void configureInterceptors(Client client) {
    super.configureInterceptors(client);
    client.getEndpoint().getService().setDataBinding(new PlainXmlDataBinding());

    if (auditStrategy != null) {
      AuditResponseInterceptor<Hl7v3AuditDataset> auditInterceptor =
        new AuditResponseInterceptor<>(auditStrategy, auditContext, true, null, false);
      client.getOutInterceptors().add(auditInterceptor);
      client.getOutFaultInterceptors().add(auditInterceptor);
    }
  }
}

代码示例来源:origin: org.openehealth.ipf.commons/ipf-commons-ihe-ws

client.getOutInterceptors().add(mapCodec);
client.getOutInterceptors().add(mapAggregator);
client.getOutFaultInterceptors().add(mapCodec);
client.getOutFaultInterceptors().add(mapAggregator);

代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-client

private void cleanupPreviousProps(Client client) {
   Endpoint ep = client.getEndpoint();
   String[] previousProps = (String[])ep.get(JBOSSWS_CXF_CLIENT_CONF_PROPS);
   if (previousProps != null) {
     for (String p : previousProps) {
      if (Constants.CXF_IN_INTERCEPTORS_PROP.equals(p)) {
        InterceptorUtils.removeInterceptors(client.getInInterceptors(), (String)ep.get(p));
      } else if (Constants.CXF_OUT_INTERCEPTORS_PROP.equals(p)) {
        InterceptorUtils.removeInterceptors(client.getOutInterceptors(), (String)ep.get(p));
      } else if (Constants.CXF_IN_FAULT_INTERCEPTORS_PROP.equals(p)) {
        InterceptorUtils.removeInterceptors(client.getInFaultInterceptors(), (String)ep.get(p));
      } else if (Constants.CXF_OUT_FAULT_INTERCEPTORS_PROP.equals(p)) {
        InterceptorUtils.removeInterceptors(client.getOutFaultInterceptors(), (String)ep.get(p));
      } else if (Constants.CXF_FEATURES_PROP.equals(p)) {
        Loggers.ROOT_LOGGER.couldNoRemoveFeaturesOnClient((String)ep.get(p));
      }
      ep.remove(p);
     }
     ep.remove(JBOSSWS_CXF_CLIENT_CONF_PROPS);
   }
  }
}

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

client.getInInterceptors().addAll(in);
client.getOutInterceptors().addAll(out);
client.getOutFaultInterceptors().addAll(outFault);

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

client.getInInterceptors().addAll(in);
client.getOutInterceptors().addAll(out);
client.getOutFaultInterceptors().addAll(outFault);

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

c.getOutFaultInterceptors().addAll(getOutFaultInterceptors());

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-simple

c.getOutFaultInterceptors().addAll(getOutFaultInterceptors());

代码示例来源:origin: org.mule.modules/mule-module-cxf

addInterceptors(client.getInFaultInterceptors(), inFaultInterceptors);
addInterceptors(client.getOutInterceptors(), outInterceptors);
addInterceptors(client.getOutFaultInterceptors(), outFaultInterceptors);

代码示例来源: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-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.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: jboss-switchyard/components

client.getOutFaultInterceptors().add(addressingInterceptor);
} else {

代码示例来源:origin: org.switchyard.components/switchyard-component-soap

client.getOutFaultInterceptors().add(addressingInterceptor);
} else {

相关文章