public class PlatformHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected String |
version |
Constructor and Description |
---|
PlatformHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getFullName(String platform) |
String |
getName() |
static String |
getPlatformKey(String platform,
String version) |
String |
getVersion() |
boolean |
isJBoss() |
boolean |
isJetty() |
boolean |
isNotWindows()
Deprecated.
Since 7.4. Use
SystemUtils.IS_OS_WINDOWS |
boolean |
isTomcat() |
boolean |
isWindows()
Deprecated.
Since 7.4. Use
SystemUtils.IS_OS_WINDOWS |
boolean |
matches(String platform)
Test whether or not the current platform is same as (or compatible) with the given one.
|
public PlatformHelper()
public String getVersion()
public boolean matches(String platform)
public boolean isTomcat()
public boolean isJBoss()
public boolean isJetty()
@Deprecated public boolean isWindows()
SystemUtils.IS_OS_WINDOWS
@Deprecated public boolean isNotWindows()
SystemUtils.IS_OS_WINDOWS
public static String getFullName(String platform)
public static String getPlatformKey(String platform, String version)
Copyright © 2015 Nuxeo SA. All rights reserved.