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
  • Field Details

    • name

      protected final String name
    • version

      protected final String version
  • Constructor Details

    • PlatformHelper

      public PlatformHelper()
  • Method Details

    • 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
    • getFullName

      public static String getFullName(String platform)
    • getPlatformKey

      public static String getPlatformKey(String platform, String version)