org.nuxeo.connect.update.impl.task.guards
Class PlatformHelper
java.lang.Object
org.nuxeo.connect.update.impl.task.guards.PlatformHelper
public class PlatformHelper
- extends java.lang.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
TODO: define the platform string format.
- Author:
- Bogdan Stefanescu
Method Summary |
static java.lang.String |
getFullName(java.lang.String platform)
|
java.lang.String |
getName()
|
static java.lang.String |
getPlatformKey(java.lang.String platform,
java.lang.String version)
|
java.lang.String |
getVersion()
|
boolean |
isJBoss()
|
boolean |
isJetty()
|
boolean |
isTomcat()
|
boolean |
matches(java.lang.String platform)
Test whether or not the current platform is same as (or compatible) with
the given one. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformHelper
public PlatformHelper()
getName
public java.lang.String getName()
getVersion
public java.lang.String getVersion()
matches
public boolean matches(java.lang.String platform)
- Test whether or not the current platform is same as (or compatible) with
the given one.
- Parameters:
platform
-
- Returns:
isTomcat
public boolean isTomcat()
isJBoss
public boolean isJBoss()
isJetty
public boolean isJetty()
getFullName
public static java.lang.String getFullName(java.lang.String platform)
getPlatformKey
public static java.lang.String getPlatformKey(java.lang.String platform,
java.lang.String version)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.