/** * Create an Atmosphere Servlet. * * @param isFilter true if this instance is used as an {@link org.atmosphere.cpr.AtmosphereFilter} */ public AtmosphereWebLogicServlet(boolean isFilter, boolean autoDetectHandlers) { framework = new AtmosphereFramework(isFilter, autoDetectHandlers); }
private TesterBroadcaster createBroadcaster() { TesterBroadcaster broadcaster = new TesterBroadcaster(); AtmosphereFramework framework = new AtmosphereFramework(); AtmosphereConfig config = new AtmosphereConfig(framework); TesterBroadcasterFactory broadcasterFactory = new TesterBroadcasterFactory(config, broadcaster); framework.setBroadcasterFactory(broadcasterFactory); broadcaster.initialize("wicket-atmosphere-tester", config); return broadcaster; }
private AtmosphereCoordinator() { framework = new AtmosphereFramework(); asynchronousProcessor = new NettyCometSupport(framework().getAtmosphereConfig()); framework.setAsyncSupport(asynchronousProcessor); suspendTimer = ExecutorsFactory.getScheduler(framework.getAtmosphereConfig()); mapper = framework.endPointMapper(); }
AtmosphereCoordinator() { framework = new AtmosphereFramework(); asynchronousProcessor = new NettyCometSupport(framework().getAtmosphereConfig()); framework.setAsyncSupport(asynchronousProcessor); suspendTimer = ExecutorsFactory.getScheduler(framework.getAtmosphereConfig()); mapper = framework.endPointMapper(); }
public AtmosphereWebSocketJettyDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory) throws IOException { super(bus, registry, ei, serverEngineFactory == null ? null : new URL(getNonWSAddress(ei)), serverEngineFactory); framework = new AtmosphereFramework(false, true); framework.setUseNativeImplementation(false); addInitParameter(framework, initParams, ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_SUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(framework, bus); framework.addAtmosphereHandler("/", new DestinationHandler()); }
private AtmosphereFramework create(Bus bus) { final AtmosphereFramework instance = new AtmosphereFramework(false, true); instance.setUseNativeImplementation(false); instance.addInitParameter(ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); instance.addInitParameter(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); instance.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPORT, "true"); instance.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig instance.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(instance, bus); instance.addAtmosphereHandler("/", new DestinationHandler()); return instance; }
public AtmosphereWebSocketJettyDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, JettyHTTPServerEngineFactory serverEngineFactory) throws IOException { super(bus, registry, ei, serverEngineFactory == null ? null : new URL(getNonWSAddress(ei)), serverEngineFactory); framework = new AtmosphereFramework(false, true); framework.setUseNativeImplementation(false); addInitParameter(framework, initParams, ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_SUPPORT, "true"); addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig addInitParameter(framework, initParams, ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(framework, bus); framework.addAtmosphereHandler("/", new DestinationHandler()); }
private AtmosphereFramework create(Bus bus) { final AtmosphereFramework instance = new AtmosphereFramework(false, true); instance.setUseNativeImplementation(false); instance.addInitParameter(ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); instance.addInitParameter(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); instance.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPORT, "true"); instance.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig instance.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(instance, bus); instance.addAtmosphereHandler("/", new DestinationHandler()); return instance; }
public AtmosphereWebSocketUndertowDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, UndertowHTTPServerEngineFactory serverEngineFactory) throws IOException { super(bus, registry, ei, serverEngineFactory); framework = new AtmosphereFramework(false, true); framework.setUseNativeImplementation(false); framework.addInitParameter(ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); framework.addInitParameter(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); framework.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPORT, "true"); framework.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig framework.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(framework, bus); framework.addAtmosphereHandler("/", new DestinationHandler()); framework.init(); executor = bus.getExtension(WorkQueueManager.class).getAutomaticWorkQueue(); }
public BridgeRuntime(final Config config) { super(config.path()); this.config = config; framework = new AtmosphereFramework();
public BridgeRuntime(final Config config) { super(config.path()); this.config = config; framework = new AtmosphereFramework();
public AtmosphereWebSocketUndertowDestination(Bus bus, DestinationRegistry registry, EndpointInfo ei, UndertowHTTPServerEngineFactory serverEngineFactory) throws IOException { super(bus, registry, ei, serverEngineFactory); framework = new AtmosphereFramework(false, true); framework.setUseNativeImplementation(false); framework.addInitParameter(ApplicationConfig.PROPERTY_NATIVE_COMETSUPPORT, "true"); framework.addInitParameter(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); framework.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPORT, "true"); framework.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL_EXECUTION, "true"); // workaround for atmosphere's jsr356 initialization requiring servletConfig framework.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356, "true"); AtmosphereUtils.addInterceptors(framework, bus); framework.addAtmosphereHandler("/", new DestinationHandler()); framework.init(); executor = bus.getExtension(WorkQueueManager.class).getAutomaticWorkQueue(); }