本文整理了Java中org.apache.cxf.transport.http.HTTPTransportFactory.()方法的一些代码示例,展示了HTTPTransportFactory.()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HTTPTransportFactory.()方法的具体详情如下:包路径:org.apache.cxf.transport.http.HTTPTransportFactory类名称:HTTPTransportFactory方法名:
HTTPTransportFactory.介绍
暂无
代码示例
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http
public void start(final BundleContext context) throws Exception { ConfigAdminHttpConduitConfigurer cOnduitConfigurer= new ConfigAdminHttpConduitConfigurer(); registerService(context, ManagedServiceFactory.class, conduitConfigurer, ConfigAdminHttpConduitConfigurer.FACTORY_PID); registerService(context, HTTPConduitConfigurer.class, conduitConfigurer, "org.apache.cxf.http.conduit-configurer"); if (PropertyUtils.isTrue(context.getProperty(DISABLE_DEFAULT_HTTP_TRANSPORT))) { //TODO: Review if it also makes sense to support "http.transport.disable" // directly in the CXF_CONFIG_SCOPE properties file return; } DestinationRegistry destinatiOnRegistry= new DestinationRegistryImpl(); HTTPTransportFactory transportFactory = new HTTPTransportFactory(destinationRegistry); HttpServiceTrackerCust customizer = new HttpServiceTrackerCust(destinationRegistry, context); httpServiceTracker = new ServiceTracker(context, HttpService.class, customizer); httpServiceTracker.open(); context.registerService(DestinationRegistry.class.getName(), destinationRegistry, null); context.registerService(HTTPTransportFactory.class.getName(), transportFactory, null); BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() { @Override public Object createNamespaceHandler() { return new HttpBPHandler(); } }; NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/transports/http/configuration");}
代码示例来源:origin: stackoverflow.com
void initializeCxf() { final Bus defaultBus = BusFactory.getDefaultBus(); final ConduitInitiatorManager extension = defaultBus.getExtension(ConduitInitiatorManager.class); extension.registerConduitInitiator("http://cxf.apache.org/transports/http", new HTTPTransportFactory());}
代码示例来源:origin: apache/cxf
public void start(final BundleContext context) throws Exception { ConfigAdminHttpConduitConfigurer cOnduitConfigurer= new ConfigAdminHttpConduitConfigurer(); registerService(context, ManagedServiceFactory.class, conduitConfigurer, ConfigAdminHttpConduitConfigurer.FACTORY_PID); registerService(context, HTTPConduitConfigurer.class, conduitConfigurer, "org.apache.cxf.http.conduit-configurer"); if (PropertyUtils.isTrue(context.getProperty(DISABLE_DEFAULT_HTTP_TRANSPORT))) { //TODO: Review if it also makes sense to support "http.transport.disable" // directly in the CXF_CONFIG_SCOPE properties file return; } DestinationRegistry destinatiOnRegistry= new DestinationRegistryImpl(); HTTPTransportFactory transportFactory = new HTTPTransportFactory(destinationRegistry); HttpServiceTrackerCust customizer = new HttpServiceTrackerCust(destinationRegistry, context); httpServiceTracker = new ServiceTracker(context, HttpService.class, customizer); httpServiceTracker.open(); context.registerService(DestinationRegistry.class.getName(), destinationRegistry, null); context.registerService(HTTPTransportFactory.class.getName(), transportFactory, null); BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() { @Override public Object createNamespaceHandler() { return new HttpBPHandler(); } }; NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/transports/http/configuration");}【本文转自:韩国服务器 https://www.68idc.cn 复制请保留原URL】