String newVersion = Version.getRawVersion(); String clientVersion = null; String nextMajorRelease = null; } else if (inputLine.startsWith("ATMO_RELEASE_VERSION=")) { nextMajorRelease = inputLine.substring("ATMO_RELEASE_VERSION=".length()); if (nextMajorRelease.compareTo(Version.getRawVersion()) > 0 && nextMajorRelease.toLowerCase().indexOf("rc") == -1 && nextMajorRelease.toLowerCase().indexOf("beta") == -1) { logger.info("Latest version of Atmosphere's JavaScript Client {}", clientVersion); if (newVersion.compareTo(Version.getRawVersion()) > 0) { if (nextAvailable) { logger.info("\n\n\tAtmosphere Framework Updates\n\tMinor available (bugs fixes): {}\n\tMajor available (new features): {}", newVersion, nextMajorRelease); JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(ModuleDetection.detect(), Version.getRawVersion(), "UA-31990725-1"); tracker.trackSynchronously(new FocusPoint(container, new FocusPoint("Atmosphere")));
logger.info("Atmosphere is using async support: {} running under container: {}", getAsyncSupport().getClass().getName(), asyncSupport.getContainerName()); logger.info("Atmosphere Framework {} started.", Version.getRawVersion());
public static String getAtmosphereVersion() { try { String v = Version.getRawVersion(); assert v != null; return v; } catch (NoClassDefFoundError e) { return null; } }
/** * Gets the Atmosphere version in use, as reported by * {@link Version#getRawVersion()}. * * @return the Atmosphere version in use or null if Atmosphere was not found */ public static String getAtmosphereVersion() { try { String v = Version.getRawVersion(); assert v != null; return v; } catch (NoClassDefFoundError e) { return null; } }
/** * Gets the Atmosphere version in use, as reported by * {@link Version#getRawVersion()}. * * @return the Atmosphere version in use or null if Atmosphere was not found */ public static String getAtmosphereVersion() { try { String v = Version.getRawVersion(); assert v != null; return v; } catch (NoClassDefFoundError e) { return null; } }
@Override public void init(ServletConfig sc) throws ServletException { super.init(sc); logger.info("Swagger Socket installed {}", Version.getRawVersion()); } }
@Override public void init(ServletConfig sc) throws ServletException { super.init(sc); TrackMessageSizeInterceptor t = new TrackMessageSizeInterceptor(); t.excludedContentType("application/javascript").excludedContentType("text/html").excludedContentType("text/plain").messageDelimiter("<->"); t.configure(framework().getAtmosphereConfig()); framework().interceptor(t); framework().interceptor(new SwaggerSocketProtocolInterceptor()); logger.info("Swagger Socket installed {}", Version.getRawVersion()); } }