public enum HttpMethod extends java.lang.Enum<HttpMethod>
Enum Constant and Description |
---|
ACL |
BASELINE_CONTROL |
BIND |
CHECKIN |
CHECKOUT |
CONNECT |
COPY |
DELETE |
GET |
HEAD |
LABEL |
LINK |
LOCK |
MERGE |
MKACTIVITY |
MKCALENDAR |
MKCOL |
MKREDIRECTREF |
MKWORKSPACE |
MOVE |
OPTIONS |
ORDERPATCH |
PATCH |
POST |
PRI |
PROPFIND |
PROPPATCH |
PROXY |
PUT |
REBIND |
REPORT |
SEARCH |
TRACE |
UNBIND |
UNCHECKOUT |
UNLINK |
UNLOCK |
UPDATE |
UPDATEREDIRECTREF |
VERSION_CONTROL |
Modifier and Type | Field and Description |
---|---|
static int |
ACL_AS_INT |
static Trie<HttpMethod> |
CACHE |
static int |
GET_AS_INT |
static int |
HEAD_AS_INT |
static Trie<HttpMethod> |
INSENSITIVE_CACHE |
static Trie<HttpMethod> |
LOOK_AHEAD |
static int |
POST_AS_INT |
static int |
PRI_AS_INT |
static int |
PUT_AS_INT |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
asBuffer() |
java.lang.String |
asString() |
static HttpMethod |
fromString(java.lang.String method)
Converts the given String parameter to an HttpMethod.
|
byte[] |
getBytes() |
boolean |
is(java.lang.String s) |
boolean |
isIdempotent()
An idempotent HTTP method is an HTTP method that can be called many times without different outcomes.
|
boolean |
isSafe()
An HTTP method is safe if it doesn't alter the state of the server.
|
static HttpMethod |
lookAheadGet(byte[] bytes,
int position,
int limit)
Deprecated.
Not used
|
static HttpMethod |
lookAheadGet(java.nio.ByteBuffer buffer)
Optimized lookup to find a method name and trailing space in a byte array.
|
java.lang.String |
toString() |
static HttpMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethod ACL
public static final HttpMethod BASELINE_CONTROL
public static final HttpMethod BIND
public static final HttpMethod CHECKIN
public static final HttpMethod CHECKOUT
public static final HttpMethod CONNECT
public static final HttpMethod COPY
public static final HttpMethod DELETE
public static final HttpMethod GET
public static final HttpMethod HEAD
public static final HttpMethod LABEL
public static final HttpMethod LINK
public static final HttpMethod LOCK
public static final HttpMethod MERGE
public static final HttpMethod MKACTIVITY
public static final HttpMethod MKCALENDAR
public static final HttpMethod MKCOL
public static final HttpMethod MKREDIRECTREF
public static final HttpMethod MKWORKSPACE
public static final HttpMethod MOVE
public static final HttpMethod OPTIONS
public static final HttpMethod ORDERPATCH
public static final HttpMethod PATCH
public static final HttpMethod POST
public static final HttpMethod PRI
public static final HttpMethod PROPFIND
public static final HttpMethod PROPPATCH
public static final HttpMethod PUT
public static final HttpMethod REBIND
public static final HttpMethod REPORT
public static final HttpMethod SEARCH
public static final HttpMethod TRACE
public static final HttpMethod UNBIND
public static final HttpMethod UNCHECKOUT
public static final HttpMethod UNLINK
public static final HttpMethod UNLOCK
public static final HttpMethod UPDATE
public static final HttpMethod UPDATEREDIRECTREF
public static final HttpMethod VERSION_CONTROL
public static final HttpMethod PROXY
public static final Trie<HttpMethod> INSENSITIVE_CACHE
public static final Trie<HttpMethod> CACHE
public static final Trie<HttpMethod> LOOK_AHEAD
public static final int ACL_AS_INT
public static final int GET_AS_INT
public static final int PRI_AS_INT
public static final int PUT_AS_INT
public static final int POST_AS_INT
public static final int HEAD_AS_INT
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte[] getBytes()
public boolean is(java.lang.String s)
public boolean isSafe()
public boolean isIdempotent()
public java.nio.ByteBuffer asBuffer()
public java.lang.String asString()
public java.lang.String toString()
toString
in class java.lang.Enum<HttpMethod>
@Deprecated public static HttpMethod lookAheadGet(byte[] bytes, int position, int limit)
bytes
- Array containing ISO-8859-1 charactersposition
- The first valid indexlimit
- The first non valid indexpublic static HttpMethod lookAheadGet(java.nio.ByteBuffer buffer)
buffer
- buffer containing ISO-8859-1 characters, it is not modified.public static HttpMethod fromString(java.lang.String method)
method
- the String to get the equivalent HttpMethod fromCopyright © 1995–2021 Webtide. All rights reserved.