Enum Class EHttpVersion

java.lang.Object
java.lang.Enum<EHttpVersion>
com.helger.http.EHttpVersion
All Implemented Interfaces:
com.helger.base.name.IHasName, Serializable, Comparable<EHttpVersion>, Constable

public enum EHttpVersion extends Enum<EHttpVersion> implements com.helger.base.name.IHasName
HTTP versions
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

      public static EHttpVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EHttpVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      @Nonnull @Nonempty public String getName()
      Specified by:
      getName in interface com.helger.base.name.IHasName
    • is10

      public boolean is10()
    • isAtLeast11

      public boolean isAtLeast11()
    • getFromNameOrNull

      @Nullable public static EHttpVersion getFromNameOrNull(@Nullable String sName)