public enum EHttpMethod extends Enum<EHttpMethod> implements IHasName
| Enum Constant and Description |
|---|
CONNECT |
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
| Modifier and Type | Method and Description |
|---|---|
static EHttpMethod |
getFromNameOrNull(String sName) |
String |
getName() |
boolean |
isContentAllowed() |
boolean |
isIdempodent() |
boolean |
isPayloadInBody() |
static EHttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EHttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetComparatorCollating, getComparatorNamepublic static final EHttpMethod OPTIONS
public static final EHttpMethod GET
public static final EHttpMethod HEAD
public static final EHttpMethod POST
public static final EHttpMethod PUT
public static final EHttpMethod DELETE
public static final EHttpMethod TRACE
public static final EHttpMethod CONNECT
public static final EHttpMethod PATCH
public static EHttpMethod[] values()
for (EHttpMethod c : EHttpMethod.values()) System.out.println(c);
public static EHttpMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isIdempodent()
public boolean isContentAllowed()
public boolean isPayloadInBody()
@Nullable public static EHttpMethod getFromNameOrNull(@Nullable String sName)
Copyright © 2014–2017 Philip Helger. All rights reserved.