public static enum HttpRestHandler.METHOD extends Enum<HttpRestHandler.METHOD>
Enum Constant and Description |
---|
CONNECT
REST: unknown
This specification reserves the method name CONNECT for use with a
proxy
that can dynamically switch to
being a tunnel
|
DELETE
REST: Delete existing item
The DELETE method requests that the origin server delete the resource
identified by the Request-URI.
|
GET
REST: Standard GET item
The GET method means retrieve whatever information (in the form of
an
entity) is identified by the
Request-URI.
|
HEAD
REST: as GET but no BODY (existence ?
|
OPTIONS
REST: what options are supported for the URI
The OPTIONS method represents a request for information about the
communication options available on the
request/response chain identified by the Request-URI.
|
PATCH
REST: should not be used, use POST instead
The PATCH method requests that a set of changes described in the
request
entity be applied to the resource
identified by the Request-URI.
|
POST
REST: Create a new item
The POST method is used to request that the origin server accept the
entity enclosed in the request as a
new subordinate of the resource identified by the Request-URI in the
Request-Line.
|
PUT
REST: Update existing item
The PUT method requests that the enclosed entity be stored under the
supplied Request-URI.
|
TRACE
REST: unknown usage
The TRACE method is used to invoke a remote, application-layer
loop-back
of the request message.
|
Modifier and Type | Field and Description |
---|---|
io.netty.handler.codec.http.HttpMethod |
method |
Modifier and Type | Method and Description |
---|---|
static HttpRestHandler.METHOD |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRestHandler.METHOD[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRestHandler.METHOD GET
The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the entity in the response and not the source text of the process, unless that text happens to be the output of the process.
public static final HttpRestHandler.METHOD PUT
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
public static final HttpRestHandler.METHOD POST
The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.
public static final HttpRestHandler.METHOD DELETE
The DELETE method requests that the origin server delete the resource identified by the Request-URI.
public static final HttpRestHandler.METHOD OPTIONS
The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.
public static final HttpRestHandler.METHOD HEAD
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
public static final HttpRestHandler.METHOD PATCH
The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request-URI.
public static final HttpRestHandler.METHOD TRACE
The TRACE method is used to invoke a remote, application-layer loop-back of the request message.
public static final HttpRestHandler.METHOD CONNECT
This specification reserves the method name CONNECT for use with a proxy that can dynamically switch to being a tunnel
public static HttpRestHandler.METHOD[] values()
for (HttpRestHandler.METHOD c : HttpRestHandler.METHOD.values()) System.out.println(c);
public static HttpRestHandler.METHOD 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 nullCopyright © 2009–2022 Waarp. All rights reserved.