Class 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 Detail

      • name

        protected final String name
      • version

        protected final String version
    • 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.
        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. Use SystemUtils.IS_OS_WINDOWS
      • isNotWindows

        @Deprecated
        public boolean isNotWindows()
        Deprecated.
        Since 7.4. Use SystemUtils.IS_OS_WINDOWS
      • getFullName

        public static String getFullName​(String platform)
      • getPlatformKey

        public static String getPlatformKey​(String platform,
                                            String version)