Class PlatformHelper
- java.lang.Object
-
- org.nuxeo.connect.update.task.guards.PlatformHelper
-
public class PlatformHelper extends Object
This class can be used to check if the current platform match a given platform. For example in a command you may want a guard that define the platform string format.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description PlatformHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetFullName(String platform)StringgetName()static StringgetPlatformKey(String platform, String version)StringgetVersion()booleanisJetty()Deprecated.since 11.1, no replacementbooleanisNotWindows()Deprecated.Since 7.4.booleanisTomcat()Deprecated.since 11.1, no replacementbooleanisWindows()Deprecated.Since 7.4.booleanmatches(String platform)Test whether or not the current platform is same as (or compatible) with the given one.
-
-
-
Method Detail
-
getName
public String getName()
-
getVersion
public String getVersion()
-
matches
public boolean matches(String platform)
Test whether or not the current platform is same as (or compatible) with the given one.- Returns:
- not implemented, always return true
-
isTomcat
@Deprecated(since="11.1") public boolean isTomcat()
Deprecated.since 11.1, no replacement
-
isJetty
@Deprecated(since="11.1") public boolean isJetty()
Deprecated.since 11.1, no replacement
-
isWindows
@Deprecated public boolean isWindows()
Deprecated.Since 7.4. UseSystemUtils.IS_OS_WINDOWS
-
isNotWindows
@Deprecated public boolean isNotWindows()
Deprecated.Since 7.4. UseSystemUtils.IS_OS_WINDOWS
-
-