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


Java HttpDestinationFactory类代码示例

本文整理汇总了Java中org.apache.cxf.transport.http.HttpDestinationFactory的典型用法代码示例。如果您正苦于以下问题:Java HttpDestinationFactory类的具体用法?Java HttpDestinationFactory怎么用?Java HttpDestinationFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HttpDestinationFactory类属于org.apache.cxf.transport.http包,在下文中一共展示了HttpDestinationFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: HttpWsServer

import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public HttpWsServer(ServerTransportConfig serverConfig) {
    super(serverConfig);
    this.serverConfig = serverConfig;
    // 为了一个端口发布多个服务,增加path以示区分
    this.basePath = serverConfig.getContextPath();
    this.isjaxws = serverConfig.getProtocolType().equals(Constants.ProtocolType.jaxws);
    this.bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
 
开发者ID:tiglabs,项目名称:jsf-sdk,代码行数:9,代码来源:HttpWsServer.java

示例2: BusHolder

import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public BusHolder(DDBeans metadata)
{
   super();
   this.metadata = metadata;
   bus = new JBossWSBusFactory().createBus();
   //Force servlet transport to prevent CXF from using Jetty / http server or other transports
   bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
 
开发者ID:jbossws,项目名称:jbossws-cxf,代码行数:9,代码来源:BusHolder.java

示例3: initDefaultBus

import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
private static Bus initDefaultBus() {
    final ClassLoader cl = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(CxfUtil.class.getClassLoader());
    try { // create the bus reusing cxf logic but skipping factory lookup
        final Bus bus = BusFactory.newInstance(CXFBusFactory.class.getName()).createBus();
        bus.setId(SystemInstance.get().getProperty("openejb.cxf.bus.id", "openejb.cxf.bus"));

        final BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
        bindingFactoryMap = (Map<String, BindingFactory>) Reflections.get(bfm, "bindingFactories");

        bus.setExtension(new OpenEJBHttpDestinationFactory(), HttpDestinationFactory.class);

        // ensure client proxies can use app classes
        CXFBusFactory.setDefaultBus(Bus.class.cast(Proxy.newProxyInstance(CxfUtil.class.getClassLoader(), new Class<?>[]{Bus.class}, new ClientAwareBusHandler())));

        bus.setProperty(ClassUnwrapper.class.getName(), new ClassUnwrapper() {
            @Override
            public Class<?> getRealClass(final Object o) {
                final Class<?> aClass = o.getClass();
                Class<?> c = aClass;
                while (c.getName().contains("$$")) {
                    c = c.getSuperclass();
                }
                return c == Object.class ? aClass : c;
            }
        });

        SystemInstance.get().addObserver(new LifecycleManager());

        initAuthenticators();

        return bus; // we keep as internal the real bus and just expose to cxf the client aware bus to be able to cast it easily
    } finally {
        Thread.currentThread().setContextClassLoader(cl);
    }
}
 
开发者ID:apache,项目名称:tomee,代码行数:37,代码来源:CxfUtil.java

示例4: WebServiceProtocol

import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public WebServiceProtocol() {
    super(Fault.class);
    bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
 
开发者ID:dachengxi,项目名称:EatDubbo,代码行数:5,代码来源:WebServiceProtocol.java

示例5: HttpWsClientTransport

import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
/**
 * Instantiates a new Abstract proxy client transport.
 *
 * @param transportConfig
 *         the transport config
 */
public HttpWsClientTransport(ClientTransportConfig transportConfig) {
    super(transportConfig);
    this.bus = new ExtensionManagerBus();
    this.bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
 
开发者ID:tiglabs,项目名称:jsf-sdk,代码行数:12,代码来源:HttpWsClientTransport.java


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