atmosphere.getAtmosphereConfig().getInitParameter( com.vaadin.server.Constants.SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, -1));
/** * {@inheritDoc} */ @Override public void configure(AtmosphereConfig config) { String s = config.getInitParameter(DELEGATE_HANDSHAKE); if (s != null) { delegateHandshake = Boolean.parseBoolean(s); } }
public NettyWebSocket(Channel channel, AtmosphereConfig config, boolean noInternalAlloc, boolean binaryWrite) { super(config); this.channel = channel; String s = config.getInitParameter(ApplicationConfig.WEBSOCKET_MAXBINARYSIZE); if (s != null) { Integer.valueOf(s); } s = config.getInitParameter(ApplicationConfig.WEBSOCKET_MAXTEXTSIZE); if (s != null) { Integer.valueOf(s); } this.noInternalAlloc = noInternalAlloc; this.binaryWrite = binaryWrite; this.lastWrite = System.currentTimeMillis(); }
public NettyWebSocket(Channel channel, AtmosphereConfig config, boolean noInternalAlloc, boolean binaryWrite) { super(config); this.channel = channel; String s = config.getInitParameter(ApplicationConfig.WEBSOCKET_MAXBINARYSIZE); if (s != null) { Integer.valueOf(s); } s = config.getInitParameter(ApplicationConfig.WEBSOCKET_MAXTEXTSIZE); if (s != null) { Integer.valueOf(s); } this.noInternalAlloc = noInternalAlloc; this.binaryWrite = binaryWrite; this.lastWrite = System.currentTimeMillis(); }
@Override public void configure(AtmosphereConfig config) { super.configure(config); String p = config.getInitParameter("org.apache.cxf.transport.websocket.atmosphere.transport.includedheaders"); if (p != null) { includedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } p = config.getInitParameter("org.apache.cxf.transport.websocket.atmosphere.transport.excludedheaders"); if (p != null) { excludedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } }
@Override public void configure(AtmosphereConfig config) { super.configure(config); String p = config.getInitParameter("org.apache.cxf.transport.websocket.atmosphere.transport.includedheaders"); if (p != null) { includedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } p = config.getInitParameter("org.apache.cxf.transport.websocket.atmosphere.transport.excludedheaders"); if (p != null) { excludedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } }
public RabbitMQConnectionFactory(AtmosphereConfig config) { String s = config.getInitParameter(PARAM_EXCHANGE_TYPE); if (s != null) { exchange = s; host = config.getInitParameter(PARAM_HOST); if (host == null) { host = "127.0.0.1"; vhost = config.getInitParameter(PARAM_VHOST); if (vhost == null) { vhost = "/"; user = config.getInitParameter(PARAM_USER); if (user == null) { user = "guest"; useSsl = Boolean.valueOf(config.getInitParameter(PARAM_USE_SSL, "false")); port = config.getInitParameter(PARAM_PORT); if (port == null) { if(useSsl){ password = config.getInitParameter(PARAM_PASS); if (password == null) { password = "guest";
@Override public void configure(AtmosphereConfig config) { heartbeat = config.getBroadcasterFactory().lookup(DefaultBroadcaster.class, "/swaggersocket.heartbeat"); if (heartbeat == null) { heartbeat = config.getBroadcasterFactory().get(DefaultBroadcaster.class, "/swaggersocket.heartbeat"); } lazywrite = config.getInitParameter("io.swagger.swaggersocket.protocol.lazywrite", false); emptyentity = config.getInitParameter("io.swagger.swaggersocket.protocol.emptyentity", false); String p = config.getInitParameter("io.swagger.swaggersocket.protocol.includedheaders"); if (p != null) { includedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } p = config.getInitParameter("io.swagger.swaggersocket.protocol.excludedheaders"); if (p != null) { excludedheaders = Pattern.compile(p, Pattern.CASE_INSENSITIVE); } }
private void setUp() { try { if (config.getInitParameter(JMS_TOPIC) != null) { topicId = config.getInitParameter(JMS_TOPIC); if (config.getInitParameter(JNDI_NAMESPACE) != null) { namespace = config.getInitParameter(JNDI_NAMESPACE); if (config.getInitParameter(JNDI_FACTORY_NAME) != null) { factoryName = config.getInitParameter(JNDI_FACTORY_NAME); if (config.getInitParameter(JNDI_TOPIC) != null) { topicId = config.getInitParameter(JNDI_TOPIC);
private void checkEnabledAnalytics(AtmosphereConfig config) { int major = Version.getMajorVersion(); int minor = Version.getMinorVersion(); boolean analyticsAlwaysEnabled = major == 2 && minor < 3; boolean analyticsOption = config.getInitParameter(AtmosphereFramework.class.getName() + ".analytics", true); if (analyticsAlwaysEnabled || analyticsOption) { log.warn("Atmosphere's Google Analytics callback is enabled. Atmosphere will contact " + "Google Analytics on startup of your application. To disable this, upgrade " + "to Atmosphere 2.3 and disable ApplicationConfig.ANALYTICS in your web.xml"); } }
if (config.getInitParameter(JMS_TOPIC) != null) { topicId = config.getInitParameter(JMS_TOPIC); if (config.getInitParameter(JNDI_NAMESPACE) != null) { namespace = config.getInitParameter(JNDI_NAMESPACE); if (config.getInitParameter(JNDI_FACTORY_NAME) != null) { factoryName = config.getInitParameter(JNDI_FACTORY_NAME); if (config.getInitParameter(JNDI_TOPIC) != null) { topicId = config.getInitParameter(JNDI_TOPIC);
@Override public void configure(AtmosphereConfig config) { if (config == null) { throw new NullPointerException("AtmosphereConfig can't be null"); } this.config = config; if (config.getInitParameter(BIND_INTERNAL_COMPONENT, true)) { modules.add(new AtmosphereModule()); } try { AtmosphereProducers p = newClassInstance(AtmosphereProducers.class, AtmosphereProducers.class); p.configure(config); } catch (Exception e) { logger.error("", e); } }
@Override public void configure(AtmosphereConfig config) { String s = config.getInitParameter(SOCKETIO_TRANSPORT); availableTransports = s; String timeoutWebXML = config.getInitParameter(SOCKETIO_TIMEOUT); if (timeoutWebXML != null) { timeout = Integer.parseInt(timeoutWebXML); String heartbeatWebXML = config.getInitParameter(SOCKETIO_HEARTBEAT); if (heartbeatWebXML != null) { heartbeatInterval = Integer.parseInt(heartbeatWebXML); String heartbeatTimeoutWebXML = config.getInitParameter(SOCKETIO_HEARTBEAT_TIMEOUT); if (heartbeatTimeoutWebXML != null) { heartbeatTimeout = Integer.parseInt(heartbeatTimeoutWebXML); String suspendWebXML = config.getInitParameter(SOCKETIO_SUSPEND); if (suspendWebXML != null) { suspendTime = Integer.parseInt(suspendWebXML);
@Inject public AtmosphereController(HttpExecutionContext ec) throws Exception { this.httpExecutionContext = ec; framework = AtmosphereCoordinator.instance().framework(); config = framework.getAtmosphereConfig(); final String playSessionConverter = config.getInitParameter(AtmosphereCoordinator.PLAY_SESSION_CONVERTER); if(StringUtils.isNotBlank(playSessionConverter)){ converter = framework.newClassInstance(AtmospherePlaySessionConverter.class, (Class<AtmospherePlaySessionConverter>) IOUtils.loadClass(getClass(), playSessionConverter)); } else { converter = null; } }
@Override public void configure(AtmosphereConfig config) { String s = config.getInitParameter(SOCKETIO_TRANSPORT); availableTransports = s; String timeoutWebXML = config.getInitParameter(SOCKETIO_TIMEOUT); if (timeoutWebXML != null) { timeout = Integer.parseInt(timeoutWebXML); String heartbeatWebXML = config.getInitParameter(SOCKETIO_HEARTBEAT); if (heartbeatWebXML != null) { heartbeatInterval = Integer.parseInt(heartbeatWebXML); String suspendWebXML = config.getInitParameter(SOCKETIO_SUSPEND); if (suspendWebXML != null) { suspendTime = Integer.parseInt(suspendWebXML);
String load = config.getInitParameter(PROPERTIES_FILE, null); Properties props = new Properties();
@Override public void configure(AtmosphereConfig config) { try { String s = config.getInitParameter(ATMOSPHERE_SPRING_EXCLUDE_CLASSES); if (s != null) { String[] list = s.split(","); for (String clazz : list) { excludedFromInjection.add(IOUtils.loadClass(getClass(), clazz)); } if (list.length > 0) { preventSpringInjection = true; } } context = new AnnotationConfigApplicationContext(); context.setParent(WebApplicationContextUtils.getWebApplicationContext(config.framework().getServletContext())); context.refresh(); // Hack to make it injectable context.register(AtmosphereConfig.class); ((AtmosphereConfig) context.getBean(AtmosphereConfig.class.getCanonicalName(), config.framework())).populate(config); } catch (Exception ex) { logger.warn("Unable to configure injection", ex); } } }
private Action iframe(AtmosphereResource r) { final AtmosphereResponse response = r.getResponse(); response.setContentType("text/html"); String origin = framework.getAtmosphereConfig().getInitParameter(SOCKS_JS_ORIGIN); if (origin == null) { origin = "http://localhost:8080/lib/sockjs.js"; } try { response.write(IFrameUtils.generateIFrame(origin)).flushBuffer(); } catch (IOException e) { logger.error("", e); } return Action.CANCELLED; }
atmosphere.getAtmosphereConfig().getInitParameter( com.vaadin.server.Constants.SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, -1));
atmosphere.getAtmosphereConfig().getInitParameter( Constants.SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING, -1));