public HTTPTransportFactory() { this(new DestinationRegistryImpl()); }
protected HTTPTransportFactory(List<String> transportIds, DestinationRegistry registry) { super(transportIds); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; }
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (destination == null) { destination = new JAXWSHttpSpiDestination(bus, new DestinationRegistryImpl(), endpointInfo); // set handler into the provided HttpContext, our Destination hook into the server container HttpHandlerImpl handler = new HttpHandlerImpl(destination); context.setHandler(handler); } return destination; }
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"); }
public WebSocketTransportFactory(DestinationRegistry registry) { super(DEFAULT_NAMESPACES); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; } public DestinationRegistry getRegistry() {
public NettyHttpTransportFactory(DestinationRegistry registry) { super(DEFAULT_NAMESPACES); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; }
protected HTTPTransportFactory(List<String> transportIds, DestinationRegistry registry) { super(transportIds); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; }
public NettyHttpTransportFactory() { this(new DestinationRegistryImpl()); }
public WebSocketTransportFactory(DestinationRegistry registry) { super(DEFAULT_NAMESPACES); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; } public DestinationRegistry getRegistry() {
public NettyHttpTransportFactory(DestinationRegistry registry) { super(DEFAULT_NAMESPACES); if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; }
public HTTPTransportFactory() { this(new DestinationRegistryImpl()); } public HTTPTransportFactory(Bus b) {
public HTTPTransportFactory() { this(new DestinationRegistryImpl()); }
public NettyHttpTransportFactory() { this(new DestinationRegistryImpl()); }
public WebSocketTransportFactory() { this(new DestinationRegistryImpl()); }
public WebSocketTransportFactory() { this(new DestinationRegistryImpl()); }
public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (destination == null) { destination = new JAXWSHttpSpiDestination(bus, new DestinationRegistryImpl(), endpointInfo); // set handler into the provided HttpContext, our Destination hook into the server container HttpHandlerImpl handler = new HttpHandlerImpl(destination); context.setHandler(handler); } return destination; }
public HTTPTransportFactory(Bus b, DestinationRegistry registry) { super(DEFAULT_NAMESPACES, null); if (registry == null && b != null) { registry = b.getExtension(DestinationRegistry.class); } if (registry == null) { registry = new DestinationRegistryImpl(); } this.registry = registry; bus = b; register(); }
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"); }