Nuxeo Enterprise Platform 5.4

org.nuxeo.connect.update.impl.task.guards
Class PlatformHelper

java.lang.Object
  extended by org.nuxeo.connect.update.impl.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 TODO: define the platform string format.

Author:
Bogdan Stefanescu

Constructor Summary
PlatformHelper()
           
 
Method Summary
static String getFullName(String platform)
           
 String getName()
           
static String getPlatformKey(String platform, String version)
           
 String getVersion()
           
 boolean isJBoss()
           
 boolean isJetty()
           
 boolean isTomcat()
           
 boolean matches(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
 

Constructor Detail

PlatformHelper

public PlatformHelper()
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.


isTomcat

public boolean isTomcat()

isJBoss

public boolean isJBoss()

isJetty

public boolean isJetty()

getFullName

public static String getFullName(String platform)

getPlatformKey

public static String getPlatformKey(String platform,
                                    String version)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.