Package me.scolastico.tools.web.enums
Enum WebServerRequestType
- java.lang.Object
-
- java.lang.Enum<WebServerRequestType>
-
- me.scolastico.tools.web.enums.WebServerRequestType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WebServerRequestType>
,java.lang.constant.Constable
public enum WebServerRequestType extends java.lang.Enum<WebServerRequestType>
-
-
Method Summary
Modifier and Type Method Description static WebServerRequestType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WebServerRequestType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIMPLE
public static final WebServerRequestType SIMPLE
-
GET
public static final WebServerRequestType GET
-
POST
public static final WebServerRequestType POST
-
PUT
public static final WebServerRequestType PUT
-
PATCH
public static final WebServerRequestType PATCH
-
DELETE
public static final WebServerRequestType DELETE
-
-
Method Detail
-
values
public static WebServerRequestType[] 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 WebServerRequestType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-