Enum EHttpMethod

java.lang.Object
java.lang.Enum<EHttpMethod>
com.helger.commons.http.EHttpMethod
All Implemented Interfaces:
IHasName, Serializable, Comparable<EHttpMethod>, java.lang.constant.Constable

public enum EHttpMethod extends Enum<EHttpMethod> implements IHasName
HTTP 1.1 methods.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

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

      public static EHttpMethod valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      @Nonnull @Nonempty public String getName()
      Specified by:
      getName in interface IHasName
      Returns:
      The name of the object. May not be null.
    • isIdempodent

      public boolean isIdempodent()
    • isContentAllowed

      public boolean isContentAllowed()
    • isPayloadInBody

      public boolean isPayloadInBody()
    • getFromNameOrNull

      @Nullable public static EHttpMethod getFromNameOrNull(@Nullable String sName)
    • getFromNameOrDefault

      @Nullable public static EHttpMethod getFromNameOrDefault(@Nullable String sName, @Nullable EHttpMethod eDefault)