org.atmosphere.util.Version.getRawVersion()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.atmosphere.util.Version.getRawVersion()方法的一些代码示例,展示了Version.getRawVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getRawVersion()方法的具体详情如下:
包路径:org.atmosphere.util.Version
类名称:Version
方法名:getRawVersion

Version.getRawVersion介绍

[英]Return the raw version derived frok the project's pom.xml
[中]返回从项目pom派生的原始版本。xml

代码示例

代码示例来源:origin: Atmosphere/atmosphere

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")));

代码示例来源:origin: Atmosphere/atmosphere

logger.info("Atmosphere is using async support: {} running under container: {}",
    getAsyncSupport().getClass().getName(), asyncSupport.getContainerName());
logger.info("Atmosphere Framework {} started.", Version.getRawVersion());

代码示例来源:origin: com.vaadin/vaadin-server

public static String getAtmosphereVersion() {
  try {
    String v = Version.getRawVersion();
    assert v != null;
    return v;
  } catch (NoClassDefFoundError e) {
    return null;
  }
}

代码示例来源:origin: com.vaadin/flow-server

/**
 * 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;
  }
}

代码示例来源:origin: com.vaadin/hummingbird-server

/**
 * 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;
  }
}

代码示例来源:origin: com.wordnik/swaggersocket

@Override
  public void init(ServletConfig sc) throws ServletException {
    super.init(sc);
    logger.info("Swagger Socket installed {}", Version.getRawVersion());
  }
}

代码示例来源:origin: swagger-api/swagger-socket

@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());
  }
}

相关文章

Version类方法