Modifier and Type | Field and Description |
---|---|
static Method |
ALL
Pseudo-method use to match all methods.
|
static Method |
CONNECT
Used with a proxy that can dynamically switch to being a tunnel.
|
static Method |
COPY
Creates a duplicate of the source resource, identified by the
Request-URI, in the destination resource, identified by the URI in the
Destination header.
|
static Method |
DELETE
Requests that the origin server deletes the resource identified by the
request URI.
|
static Method |
GET
Retrieves whatever information (in the form of an entity) that is
identified by the request URI.
|
static Method |
HEAD
Identical to GET except that the server must not return a message body in
the response but only the message header.
|
static Method |
LOCK
Used to take out a lock of any access type on the resource identified by
the request URI.
|
static Method |
MKCOL
MKCOL creates a new collection resource at the location specified by the
Request URI.
|
static Method |
MOVE
Logical equivalent of a copy, followed by consistency maintenance
processing, followed by a delete of the source where all three actions
are performed atomically.
|
static Method |
OPTIONS
Requests for information about the communication options available on the
request/response chain identified by the URI.
|
static Method |
PATCH
Requests that the origin server applies partial modifications contained
in the entity enclosed in the request to the resource identified by the
request URI.
|
static Method |
POST
Requests that the origin server accepts the entity enclosed in the
request as a new subordinate of the resource identified by the request
URI.
|
static Method |
PROPFIND
Retrieves properties defined on the resource identified by the request
URI.
|
static Method |
PROPPATCH
Processes instructions specified in the request body to set and/or remove
properties defined on the resource identified by the request URI.
|
static Method |
PUT
Requests that the enclosed entity be stored under the supplied request
URI.
|
static Method |
TRACE
Used to invoke a remote, application-layer loop-back of the request
message.
|
static Method |
UNLOCK
Removes the lock identified by the lock token from the request URI, and
all other resources included in the lock.
|
Constructor and Description |
---|
Method(java.lang.String name)
Constructor for unsafe and non idempotent methods.
|
Method(java.lang.String name,
java.lang.String description)
Constructor for unsafe and non idempotent methods.
|
Method(java.lang.String name,
java.lang.String description,
java.lang.String uri)
Constructor for unsafe and non idempotent methods.
|
Method(java.lang.String name,
java.lang.String description,
java.lang.String uri,
boolean safe,
boolean idempotent)
Constructor for methods that reply to requests with responses.
|
Method(java.lang.String name,
java.lang.String description,
java.lang.String uri,
boolean safe,
boolean idempotent,
boolean replying)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Method o)
Compares this method to another.
|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getUri()
Returns the URI of the specification describing the method.
|
int |
hashCode() |
boolean |
isIdempotent()
Indicates if the side-effects of several requests is the same as a single
request.
|
boolean |
isReplying()
Indicates if the method replies with a response.
|
boolean |
isSafe()
Indicates if it should have the significance of taking an action other
than retrieval.
|
static void |
register(Method method)
Adds a new Method to the list of registered methods.
|
static void |
sort(java.util.List<Method> methods)
Sorts the given list of methods by name.
|
java.lang.String |
toString()
Returns the name.
|
static Method |
valueOf(java.lang.String name)
Returns the method associated to a given method name.
|
public static final Method ALL
public static final Method CONNECT
public static final Method COPY
public static final Method DELETE
public static final Method GET
public static final Method HEAD
public static final Method LOCK
public static final Method MKCOL
public static final Method MOVE
public static final Method OPTIONS
public static final Method PATCH
public static final Method POST
public static final Method PROPFIND
public static final Method PROPPATCH
public static final Method PUT
public static final Method TRACE
public static final Method UNLOCK
public Method(java.lang.String name)
name
- The technical name of the method.valueOf(String)
public Method(java.lang.String name, java.lang.String description)
name
- The technical name of the method.description
- The description.valueOf(String)
public Method(java.lang.String name, java.lang.String description, java.lang.String uri)
name
- The technical name.description
- The description.uri
- The URI of the specification describing the method.valueOf(String)
public Method(java.lang.String name, java.lang.String description, java.lang.String uri, boolean safe, boolean idempotent)
name
- The technical name.description
- The description.uri
- The URI of the specification describing the method.safe
- Indicates if the method is safe.idempotent
- Indicates if the method is idempotent.valueOf(String)
public Method(java.lang.String name, java.lang.String description, java.lang.String uri, boolean safe, boolean idempotent, boolean replying)
name
- The technical name.description
- The description.uri
- The URI of the specification describing the method.safe
- Indicates if the method is safe.idempotent
- Indicates if the method is idempotent.replying
- Indicates if the method replies with a response.valueOf(String)
public static void register(Method method)
method
- The method to register.public static void sort(java.util.List<Method> methods)
methods
- The methods to sort.public static Method valueOf(java.lang.String name)
name
- The method name.public int compareTo(Method o)
compareTo
in interface java.lang.Comparable<Method>
o
- The other method.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String getDescription()
public java.lang.String getName()
public java.lang.String getUri()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isIdempotent()
public boolean isReplying()
public boolean isSafe()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.