@Test public void testAtmosphereServlet() throws ServletException { AtmosphereServlet s = new MyAtmosphereServlet(); s.init(new ServletConfig() { @Override public String getServletName() { return "void"; } @Override public ServletContext getServletContext() { return mock(ServletContext.class); } @Override public String getInitParameter(String name) { if (ApplicationConfig.WEBSOCKET_SUPPRESS_JSR356.equals(name)) { return "true"; } return null; } @Override public Enumeration<String> getInitParameterNames() { return null; } }); assertNotNull(s); }
public AtmosphereFramework init() { try { init(servletConfig == null ? new VoidServletConfig(initParams) : servletConfig, false); } catch (ServletException e) { logger.error("", e); } return this; }
AtmosphereFramework { public AtmosphereFramework init() { try { init(servletConfig == null ? new VoidServletConfig(initParams) : servletConfig, false); } catch (ServletException e) { logger.error("", e); } return this; } }
AtmosphereFramework { public AtmosphereFramework init() { try { init(servletConfig == null ? new VoidServletConfig(initParams) : servletConfig, false); } catch (ServletException e) { logger.error("", e); } return this; } AtmosphereFramework();  AtmosphereFramework(ServletConfig sc);  AtmosphereFramework(boolean isFilter, boolean autoDetectHandlers); }
AtmosphereFramework { public AtmosphereFramework init() { try { init(servletConfig == null ? new VoidServletConfig(initParams) : servletConfig, false); } catch (ServletException e) { logger.error("", e); } return this; } AtmosphereFramework();  AtmosphereFramework(ServletConfig sc);  AtmosphereFramework(boolean isFilter, boolean autoDetectHandlers); void setAndConfigureAtmosphereResourceFactory(AtmosphereResourceFactory arFactory); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, Broadcaster broadcaster, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, String broadcasterId, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h); String normalizePath(String path); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, String broadcasterId); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, Broadcaster broadcaster); AtmosphereFramework removeAtmosphereHandler(String mapping); AtmosphereFramework removeAllAtmosphereHandler(); AtmosphereFramework removeAllInitParams(); AtmosphereFramework addInitParameter(String name, String value); void patchContainer(); AtmosphereFramework init(); AtmosphereFramework init(final ServletConfig sc); AtmosphereFramework init(final ServletConfig sc, boolean wrap); void reconfigureInitParams(boolean reconfigureInitParams); void configureBroadcasterFactory(); void loadConfiguration(ServletConfig sc); void sessionSupport(boolean sessionSupport); void initAtmosphereHandler(ServletConfig sc); void initAtmosphereHandler(); void checkWebSocketSupportState(); void initWebSocket(); void initEndpointMapper(); AtmosphereFramework destroy(); AtmosphereFramework resetStates(); AtmosphereFramework setAsyncSupport(AsyncSupport asyncSupport); AtmosphereFramework setCometSupport(AsyncSupport asyncSupport); AsyncSupport getAsyncSupport(); AsyncSupport getCometSupport(); void autoDetectAtmosphereHandlers(ServletContext servletContext, ClassLoader classloader); void loadAtmosphereHandlersFromPath(ClassLoader classloader, String realPath); AtmosphereFramework configureRequestResponse(AtmosphereRequest req, AtmosphereResponse res); Action doCometSupport(AtmosphereRequest req, AtmosphereResponse res); String getDefaultBroadcasterClassName(); AtmosphereFramework setDefaultBroadcasterClassName(String bccn); boolean isUseStreamForFlushingComments(); boolean isUseServlet30(); AtmosphereFramework setUseStreamForFlushingComments(boolean useStreamForFlushingComments); BroadcasterFactory getBroadcasterFactory(); AtmosphereFramework setBroadcasterFactory(final BroadcasterFactory broadcasterFactory); String getBroadcasterCacheClassName(); AtmosphereFramework setBroadcasterCacheClassName(String broadcasterCacheClassName); AtmosphereFramework addBroadcasterType(String broadcasterTypeString); ConcurrentLinkedQueue<String> broadcasterTypes(); String getWebSocketProtocolClassName(); AtmosphereFramework setWebSocketProtocolClassName(String webSocketProtocolClassName); Map<String, AtmosphereHandlerWrapper> getAtmosphereHandlers(); WebSocketProtocol getWebSocketProtocol(); boolean isUseNativeImplementation(); AtmosphereFramework setUseNativeImplementation(boolean useNativeImplementation); boolean isUseBlockingImplementation(); AtmosphereFramework setUseBlockingImplementation(boolean useBlockingImplementation); String getAtmosphereDotXmlPath(); AtmosphereFramework setAtmosphereDotXmlPath(String atmosphereDotXmlPath); String getHandlersPath(); AtmosphereFramework setHandlersPath(String handlersPath); String getLibPath(); AtmosphereFramework setLibPath(String libPath); String getWebSocketProcessorClassName(); AtmosphereFramework setWebsocketProcessorClassName(String webSocketProcessorClassName); AtmosphereFramework interceptor(AtmosphereInterceptor c); LinkedList<AtmosphereInterceptor> interceptors(); AtmosphereFramework annotationProcessorClassName(String annotationProcessorClassName); AtmosphereFramework asyncSupportListener(AsyncSupportListener asyncSupportListener); List<AsyncSupportListener> asyncSupportListeners(); AtmosphereFramework addBroadcasterListener(BroadcasterListener b); AtmosphereFramework addBroadcasterCacheListener(BroadcasterCacheListener b); List<BroadcasterCacheListener> broadcasterCacheListeners(); AtmosphereFramework addBroadcasterCacheInjector(BroadcasterCacheInspector b); ConcurrentLinkedQueue<BroadcasterCacheInspector> inspectors(); AtmosphereConfig getAtmosphereConfig(); ServletContext getServletContext(); ServletConfig getServletConfig(); List<String> broadcasterFilters(); AtmosphereFramework broadcasterFilters(BroadcastFilter f); boolean isShareExecutorServices(); AtmosphereFramework shareExecutorServices(boolean sharedThreadPools); EndpointMapper<AtmosphereHandlerWrapper> endPointMapper(); AtmosphereFramework endPointMapper(EndpointMapper endpointMapper); AtmosphereFramework addAnnotationPackage(Class<?> clazz); AtmosphereFramework notify(Action.TYPE type, AtmosphereRequest request, AtmosphereResponse response); AtmosphereFramework notifyDestroyed(String uuid); AtmosphereFramework notifySuspended(String uuid); AtmosphereFramework addWebSocketHandler(WebSocketHandler handler); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler, AtmosphereHandler h); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler, AtmosphereHandler h, List<AtmosphereInterceptor> l); AtmosphereFramework annotationScanned(boolean b); boolean initialized(); List<String> packages(); List<String> customAnnotationPackages(); AtmosphereFramework addCustomAnnotationPackage(Class p); T newClassInstance(Class<T> classType, Class<U> defaultType); void objectFactory(AtmosphereObjectFactory objectFactory); AtmosphereFramework externalizeDestroy(boolean externalizeDestroy); AnnotationProcessor annotationProcessor(); boolean isBroadcasterSpecified(); AtmosphereFramework excludeInterceptor(String interceptor); AtmosphereFramework filterManipulator(BroadcasterConfig.FilterManipulator m); List<BroadcasterConfig.FilterManipulator> filterManipulators(); boolean isAServletFilter(); ConcurrentLinkedQueue<String> objectFactoryType(); String mappingRegex(); AtmosphereFramework mappingRegex(String mappingRegex); void setUseServlet30(boolean useServlet30); boolean webSocketEnabled(); AtmosphereFramework webSocketEnabled(boolean webSocketEnabled); String broadcasterLifeCyclePolicy(); AtmosphereFramework broadcasterLifeCyclePolicy(String broadcasterLifeCyclePolicy); List<BroadcasterListener> broadcasterListeners(); boolean sharedThreadPools(); AtmosphereFramework sharedThreadPools(boolean sharedThreadPools); boolean allowAllClassesScan(); AtmosphereFramework allowAllClassesScan(boolean allowAllClassesScan); AtmosphereObjectFactory objectFactory(); boolean externalizeDestroy(); List<String> excludedInterceptors(); Class<? extends AtmosphereInterceptor>[] defaultInterceptors(); AtmosphereResourceFactory atmosphereFactory(); MetaBroadcaster metaBroadcaster(); String getDefaultSerializerClassName(); Class<Serializer> getDefaultSerializerClass(); AtmosphereFramework setDefaultSerializerClassName(String defaultSerializerClassName); synchronized AtmosphereResourceSessionFactory sessionFactory(); boolean isDestroyed(); AtmosphereFramework frameworkListener(AtmosphereFrameworkListener l); List<AtmosphereFrameworkListener> frameworkListeners(); List<AtmosphereResourceListener> atmosphereResourceListeners(); AtmosphereFramework atmosphereResourceListener(AtmosphereResourceListener atmosphereResourceListener); AtmosphereFramework uuidProvider(UUIDProvider uuidProvider); UUIDProvider uuidProvider(); WebSocketFactory webSocketFactory(); AtmosphereFramework webSocketFactory(WebSocketFactory webSocketFactory); void initializationError(IllegalStateException initializationError); }
AtmosphereFramework { public AtmosphereFramework init() { try { init(servletConfig == null ? new VoidServletConfig(initParams) : servletConfig, false); } catch (ServletException e) { logger.error("", e); } return this; } AtmosphereFramework();  AtmosphereFramework(ServletConfig sc);  AtmosphereFramework(boolean isFilter, boolean autoDetectHandlers); void setAndConfigureAtmosphereResourceFactory(AtmosphereResourceFactory arFactory); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, Broadcaster broadcaster, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, String broadcasterId, List<AtmosphereInterceptor> l); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h); String normalizePath(String path); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, String broadcasterId); AtmosphereFramework addAtmosphereHandler(String mapping, AtmosphereHandler h, Broadcaster broadcaster); AtmosphereFramework removeAtmosphereHandler(String mapping); AtmosphereFramework removeAllAtmosphereHandler(); AtmosphereFramework removeAllInitParams(); AtmosphereFramework addInitParameter(String name, String value); void patchContainer(); AtmosphereFramework init(); AtmosphereFramework init(final ServletConfig sc); AtmosphereFramework init(final ServletConfig sc, boolean wrap); void reconfigureInitParams(boolean reconfigureInitParams); void configureBroadcasterFactory(); void loadConfiguration(ServletConfig sc); void sessionSupport(boolean sessionSupport); void initAtmosphereHandler(ServletConfig sc); void initAtmosphereHandler(); void checkWebSocketSupportState(); void initWebSocket(); void initEndpointMapper(); AtmosphereFramework destroy(); AtmosphereFramework resetStates(); AtmosphereFramework setAsyncSupport(AsyncSupport asyncSupport); AtmosphereFramework setCometSupport(AsyncSupport asyncSupport); AsyncSupport getAsyncSupport(); AsyncSupport getCometSupport(); void autoDetectAtmosphereHandlers(ServletContext servletContext, ClassLoader classloader); void loadAtmosphereHandlersFromPath(ClassLoader classloader, String realPath); AtmosphereFramework configureRequestResponse(AtmosphereRequest req, AtmosphereResponse res); Action doCometSupport(AtmosphereRequest req, AtmosphereResponse res); String getDefaultBroadcasterClassName(); AtmosphereFramework setDefaultBroadcasterClassName(String bccn); boolean isUseStreamForFlushingComments(); boolean isUseServlet30(); AtmosphereFramework setUseStreamForFlushingComments(boolean useStreamForFlushingComments); BroadcasterFactory getBroadcasterFactory(); AtmosphereFramework setBroadcasterFactory(final BroadcasterFactory broadcasterFactory); String getBroadcasterCacheClassName(); AtmosphereFramework setBroadcasterCacheClassName(String broadcasterCacheClassName); AtmosphereFramework addBroadcasterType(String broadcasterTypeString); ConcurrentLinkedQueue<String> broadcasterTypes(); String getWebSocketProtocolClassName(); AtmosphereFramework setWebSocketProtocolClassName(String webSocketProtocolClassName); Map<String, AtmosphereHandlerWrapper> getAtmosphereHandlers(); WebSocketProtocol getWebSocketProtocol(); boolean isUseNativeImplementation(); AtmosphereFramework setUseNativeImplementation(boolean useNativeImplementation); boolean isUseBlockingImplementation(); AtmosphereFramework setUseBlockingImplementation(boolean useBlockingImplementation); String getAtmosphereDotXmlPath(); AtmosphereFramework setAtmosphereDotXmlPath(String atmosphereDotXmlPath); String getHandlersPath(); AtmosphereFramework setHandlersPath(String handlersPath); String getLibPath(); AtmosphereFramework setLibPath(String libPath); String getWebSocketProcessorClassName(); AtmosphereFramework setWebsocketProcessorClassName(String webSocketProcessorClassName); AtmosphereFramework interceptor(AtmosphereInterceptor c); LinkedList<AtmosphereInterceptor> interceptors(); AtmosphereFramework annotationProcessorClassName(String annotationProcessorClassName); AtmosphereFramework asyncSupportListener(AsyncSupportListener asyncSupportListener); List<AsyncSupportListener> asyncSupportListeners(); AtmosphereFramework addBroadcasterListener(BroadcasterListener b); AtmosphereFramework addBroadcasterCacheListener(BroadcasterCacheListener b); List<BroadcasterCacheListener> broadcasterCacheListeners(); AtmosphereFramework addBroadcasterCacheInjector(BroadcasterCacheInspector b); ConcurrentLinkedQueue<BroadcasterCacheInspector> inspectors(); AtmosphereConfig getAtmosphereConfig(); ServletContext getServletContext(); ServletConfig getServletConfig(); List<String> broadcasterFilters(); AtmosphereFramework broadcasterFilters(BroadcastFilter f); boolean isShareExecutorServices(); AtmosphereFramework shareExecutorServices(boolean sharedThreadPools); EndpointMapper<AtmosphereHandlerWrapper> endPointMapper(); AtmosphereFramework endPointMapper(EndpointMapper endpointMapper); AtmosphereFramework addAnnotationPackage(Class<?> clazz); AtmosphereFramework notify(Action.TYPE type, AtmosphereRequest request, AtmosphereResponse response); AtmosphereFramework notifyDestroyed(String uuid); AtmosphereFramework notifySuspended(String uuid); AtmosphereFramework addWebSocketHandler(WebSocketHandler handler); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler, AtmosphereHandler h); AtmosphereFramework addWebSocketHandler(String path, WebSocketHandler handler, AtmosphereHandler h, List<AtmosphereInterceptor> l); AtmosphereFramework annotationScanned(boolean b); boolean initialized(); List<String> packages(); List<String> customAnnotationPackages(); AtmosphereFramework addCustomAnnotationPackage(Class p); T newClassInstance(Class<T> classType, Class<U> defaultType); void objectFactory(AtmosphereObjectFactory objectFactory); AtmosphereFramework externalizeDestroy(boolean externalizeDestroy); AnnotationProcessor annotationProcessor(); boolean isBroadcasterSpecified(); AtmosphereFramework excludeInterceptor(String interceptor); AtmosphereFramework filterManipulator(BroadcasterConfig.FilterManipulator m); List<BroadcasterConfig.FilterManipulator> filterManipulators(); boolean isAServletFilter(); ConcurrentLinkedQueue<String> objectFactoryType(); String mappingRegex(); AtmosphereFramework mappingRegex(String mappingRegex); void setUseServlet30(boolean useServlet30); boolean webSocketEnabled(); AtmosphereFramework webSocketEnabled(boolean webSocketEnabled); String broadcasterLifeCyclePolicy(); AtmosphereFramework broadcasterLifeCyclePolicy(String broadcasterLifeCyclePolicy); List<BroadcasterListener> broadcasterListeners(); boolean sharedThreadPools(); AtmosphereFramework sharedThreadPools(boolean sharedThreadPools); boolean allowAllClassesScan(); AtmosphereFramework allowAllClassesScan(boolean allowAllClassesScan); AtmosphereObjectFactory objectFactory(); boolean externalizeDestroy(); List<String> excludedInterceptors(); Class<? extends AtmosphereInterceptor>[] defaultInterceptors(); AtmosphereResourceFactory atmosphereFactory(); MetaBroadcaster metaBroadcaster(); String getDefaultSerializerClassName(); Class<Serializer> getDefaultSerializerClass(); AtmosphereFramework setDefaultSerializerClassName(String defaultSerializerClassName); synchronized AtmosphereResourceSessionFactory sessionFactory(); boolean isDestroyed(); AtmosphereFramework frameworkListener(AtmosphereFrameworkListener l); List<AtmosphereFrameworkListener> frameworkListeners(); List<AtmosphereResourceListener> atmosphereResourceListeners(); AtmosphereFramework atmosphereResourceListener(AtmosphereResourceListener atmosphereResourceListener); AtmosphereFramework uuidProvider(UUIDProvider uuidProvider); UUIDProvider uuidProvider(); WebSocketFactory webSocketFactory(); AtmosphereFramework webSocketFactory(WebSocketFactory webSocketFactory); void initializationError(IllegalStateException initializationError); static final String DEFAULT_ATMOSPHERE_CONFIG_PATH; static final String DEFAULT_LIB_PATH; static final String DEFAULT_HANDLER_PATH; static final String META_SERVICE; static final String MAPPING_REGEX; static final String ASYNC_IO; static final List<Class<? extends AtmosphereInterceptor>> DEFAULT_ATMOSPHERE_INTERCEPTORS; final static AtmosphereHandler REFLECTOR_ATMOSPHEREHANDLER; }