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 String
getFullName(String platform)
String
getName()
static String
getPlatformKey(String platform, String version)
String
getVersion()
boolean
isJetty()
Deprecated.since 11.1, no replacementboolean
isNotWindows()
Deprecated.Since 7.4.boolean
isTomcat()
Deprecated.since 11.1, no replacementboolean
isWindows()
Deprecated.Since 7.4.boolean
matches(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
-
-