|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Metadata
org.restlet.data.Method
public final class Method
Method to execute when handling a call.
Field Summary | |
---|---|
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 |
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 Summary | |
---|---|
Method(java.lang.String name)
Constructor. |
|
Method(java.lang.String name,
java.lang.String description)
Constructor. |
|
Method(java.lang.String name,
java.lang.String description,
java.lang.String uri)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getUri()
Returns the URI of the specification describing the method. |
int |
hashCode()
|
void |
setUri(java.lang.String uri)
|
static Method |
valueOf(java.lang.String name)
Returns the method associated to a given method name. |
Methods inherited from class org.restlet.data.Metadata |
---|
getDescription, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 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
Constructor Detail |
---|
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)
Method Detail |
---|
public static Method valueOf(java.lang.String name)
name
- The method name.
public boolean equals(java.lang.Object object)
equals
in class Metadata
public java.lang.String getUri()
public int hashCode()
hashCode
in class Metadata
public void setUri(java.lang.String uri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |