当前位置: 首页>>代码示例>>Java>>正文


Java Endpoint.getBinding方法代码示例

本文整理汇总了Java中org.apache.cxf.endpoint.Endpoint.getBinding方法的典型用法代码示例。如果您正苦于以下问题:Java Endpoint.getBinding方法的具体用法?Java Endpoint.getBinding怎么用?Java Endpoint.getBinding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.cxf.endpoint.Endpoint的用法示例。


在下文中一共展示了Endpoint.getBinding方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupEndpoint

import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
protected void setupEndpoint(Endpoint ep) {
    resetPartTypes(ep.getBinding());

    Class<?> fmt = Source.class;
    if (ep.getBinding() instanceof SoapBinding) {
        ep.getInInterceptors().add(new SAAJInInterceptor());          
        SAAJOutInterceptor out = new SAAJOutInterceptor();
        ep.getOutInterceptors().add(out);
        ep.getOutInterceptors().add(new CxfMessageSoapHeaderOutInterceptor());
        ep.getOutInterceptors().add(new MessageModeOutInterceptor(out, ep.getBinding().getBindingInfo().getName()));
        fmt = SOAPMessage.class;
    } else {
        ep.getOutInterceptors().add(new MessageModeOutInterceptor(Source.class, ep.getBinding().getBindingInfo().getName()));
    }
    ep.getInInterceptors().add(new MessageModeInInterceptor(fmt, ep.getBinding().getBindingInfo().getName()));            
    ep.put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
    // need to remove the wrapper class and holder interceptor
    removeInterceptors(ep.getInInterceptors(), REMOVING_IN_INTERCEPTORS);
    removeInterceptors(ep.getOutInterceptors(), REMOVING_OUT_INTERCEPTORS);
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:21,代码来源:CXFMessageDataFormatFeature.java

示例2: changeTransportUriToZmq

import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
private void changeTransportUriToZmq(Endpoint ep) {
    if (ep.getBinding() == null) {
        return;
    }
    if (ep.getBinding().getBindingInfo() == null) {
        return;
    }
    BindingInfo bindingInfo = ep.getBinding().getBindingInfo();
    if (bindingInfo instanceof SoapBindingInfo) {
        SoapBindingInfo soapBindingInfo = (SoapBindingInfo) bindingInfo;
        soapBindingInfo.setTransportURI("http://schemas.xmlsoap.org/soap/zmq");
    }
}
 
开发者ID:claudemamo,项目名称:cxf-rt-transports-zeromq,代码行数:14,代码来源:ZMQConfigFeature.java

示例3: init

import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
protected void init() {
    // configure handlers
    try {
        initHandlers();
    } catch (Exception e) {
        throw new WebServiceException("Error configuring handlers", e);
    }

    // Set service to invoke the target ejb
    service.setInvoker(new EjbMethodInvoker(this.bus, beanContext));

    // Remove interceptors that perform handler processing since
    // handler processing must happen within the EJB container.
    Endpoint endpoint = getEndpoint();
    removeHandlerInterceptors(bus.getInInterceptors());
    removeHandlerInterceptors(endpoint.getInInterceptors());
    removeHandlerInterceptors(endpoint.getBinding().getInInterceptors());
    removeHandlerInterceptors(endpoint.getService().getInInterceptors());

    // Install SAAJ interceptor
    if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) {
        endpoint.getService().getInInterceptors().add(new SAAJInInterceptor());
    }

    // Install WSS4J interceptor
    ConfigureCxfSecurity.configure(endpoint, port);
}
 
开发者ID:apache,项目名称:tomee,代码行数:28,代码来源:EjbEndpoint.java


注:本文中的org.apache.cxf.endpoint.Endpoint.getBinding方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。