Enum Class Methods

java.lang.Object
java.lang.Enum<Methods>
de.linusdev.lutils.http_WIP.method.Methods
All Implemented Interfaces:
RequestMethod, Serializable, Comparable<Methods>, Constable

public enum Methods extends Enum<Methods> implements RequestMethod
  • Enum Constant Details

    • GET

      public static final Methods GET
    • POST

      public static final Methods POST
    • PUT

      public static final Methods PUT
    • DELETE

      public static final Methods DELETE
    • CONNECT

      public static final Methods CONNECT
    • OPTIONS

      public static final Methods OPTIONS
    • TRACE

      public static final Methods TRACE
  • Method Details

    • values

      public static Methods[] 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 Methods 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

      @NotNull public @NotNull String getName()
      Description copied from interface: RequestMethod
      Name of this RequestMethod. for example: "GET"
      Specified by:
      getName in interface RequestMethod
      Returns:
      name as String
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Methods>