Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.data |
Information exchanged by components.
|
org.restlet.engine.http.connector |
New advanced internal HTTP connector.
|
org.restlet.engine.http.header |
Supports HTTP header parsing and formatting.
|
org.restlet.engine.local |
Supports local connectors and resources.
|
org.restlet.engine.resource |
Supports resources.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.security |
Classes related to security.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
Method |
Request.getMethod()
Returns the method.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Method> |
Response.getAllowedMethods()
Returns the modifiable set of methods allowed on the requested resource.
|
Modifier and Type | Method and Description |
---|---|
void |
Request.setMethod(Method method)
Sets the method called.
|
Modifier and Type | Method and Description |
---|---|
void |
Response.setAllowedMethods(java.util.Set<Method> allowedMethods)
Sets the set of methods allowed on the requested resource.
|
Constructor and Description |
---|
Request(Method method,
Reference resourceRef)
Constructor.
|
Request(Method method,
Reference resourceRef,
Representation entity)
Constructor.
|
Request(Method method,
java.lang.String resourceUri)
Constructor.
|
Request(Method method,
java.lang.String resourceUri,
Representation entity)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
static Method |
Method.ALL
Pseudo-method use to match all methods.
|
static Method |
Method.CONNECT
Used with a proxy that can dynamically switch to being a tunnel.
|
static Method |
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 |
Method.DELETE
Requests that the origin server deletes the resource identified by the
request URI.
|
static Method |
Method.GET
Retrieves whatever information (in the form of an entity) that is
identified by the request URI.
|
static Method |
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 |
Method.LOCK
Used to take out a lock of any access type on the resource identified by
the request URI.
|
static Method |
Method.MKCOL
MKCOL creates a new collection resource at the location specified by the
Request URI.
|
static Method |
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 |
Method.OPTIONS
Requests for information about the communication options available on the
request/response chain identified by the URI.
|
static Method |
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 |
Method.PROPFIND
Retrieves properties defined on the resource identified by the request
URI.
|
static Method |
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 |
Method.PUT
Requests that the enclosed entity be stored under the supplied request
URI.
|
static Method |
Method.TRACE
Used to invoke a remote, application-layer loop-back of the request
message.
|
static Method |
Method.UNLOCK
Removes the lock identified by the lock token from the request URI, and
all other resources included in the lock.
|
Modifier and Type | Method and Description |
---|---|
static Method |
Method.valueOf(java.lang.String name)
Returns the method associated to a given method name.
|
Modifier and Type | Method and Description |
---|---|
int |
Method.compareTo(Method o)
Compares this method to another.
|
Status |
Conditions.getStatus(Method method,
boolean entityExists,
Tag tag,
java.util.Date modificationDate)
Returns the conditional status of a variant using a given method.
|
Status |
Conditions.getStatus(Method method,
RepresentationInfo representationInfo)
Returns the conditional status of a variant using a given method.
|
static void |
Method.register(Method method)
Adds a new Method to the list of registered methods.
|
Modifier and Type | Method and Description |
---|---|
static void |
Method.sort(java.util.List<Method> methods)
Sorts the given list of methods by name.
|
Constructor and Description |
---|
ConnectedRequest(Context context,
ServerConnection connection,
Method method,
java.lang.String resourceUri,
java.lang.String version,
Series<Parameter> headers,
Representation entity,
boolean confidential,
java.security.Principal userPrincipal)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Method |
MethodReader.readValue() |
Modifier and Type | Method and Description |
---|---|
MethodWriter |
MethodWriter.append(Method method) |
Modifier and Type | Method and Description |
---|---|
static void |
MethodReader.addValues(Parameter header,
java.util.Collection<Method> collection)
Adds values to the given collection.
|
static java.lang.String |
MethodWriter.write(java.util.Set<Method> methods)
Writes a set of methods with a comma separator.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Variant> |
DirectoryServerResource.getVariants(Method method)
Returns the list of variants for the given method.
|
Modifier and Type | Method and Description |
---|---|
Method |
AnnotationInfo.getRestletMethod()
Returns the matching Restlet method.
|
Modifier and Type | Method and Description |
---|---|
static AnnotationInfo |
AnnotationUtils.getAnnotation(java.util.List<AnnotationInfo> annotations,
Method restletMethod,
Representation entity,
MetadataService metadataService,
ConverterService converterService)
Returns the first annotation descriptor matching the given Restlet
method.
|
boolean |
AnnotationInfo.isCompatible(Method restletMethod,
Representation requestEntity,
MetadataService metadataService,
ConverterService converterService)
Indicates if the annotated method described is compatible with the given
parameters.
|
Constructor and Description |
---|
AnnotationInfo(java.lang.Class<?> resourceClass,
Method restletMethod,
java.lang.reflect.Method javaMethod,
java.lang.String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Method |
UniformResource.getMethod()
Returns the method.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Method> |
UniformResource.getAllowedMethods()
Returns the set of methods allowed for the current client by the
resource.
|
java.util.Set<Method> |
Handler.getAllowedMethods()
Deprecated.
Returns the set of allowed methods.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Variant> |
ServerResource.getVariants(Method method)
Returns a modifiable list of exposed variants for the given method.
|
void |
ClientResource.setMethod(Method method)
Sets the method called.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerResource.setAllowedMethods(java.util.Set<Method> allowedMethods)
Sets the set of methods allowed on the requested resource.
|
Constructor and Description |
---|
ClientResource(Context context,
Method method,
Reference reference)
Constructor.
|
ClientResource(Context context,
Method method,
java.lang.String uri)
Constructor.
|
ClientResource(Context context,
Method method,
java.net.URI uri)
Constructor.
|
ClientResource(Method method,
Reference reference)
Constructor.
|
ClientResource(Method method,
java.lang.String uri)
Constructor.
|
ClientResource(Method method,
java.net.URI uri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Method> |
MethodAuthorizer.getAnonymousMethods()
Returns the modifiable list of methods authorized for anonymous users.
|
java.util.List<Method> |
MethodAuthorizer.getAuthenticatedMethods()
Returns the modifiable list of methods authorized for authenticated
users.
|
Modifier and Type | Method and Description |
---|---|
void |
MethodAuthorizer.setAnonymousMethods(java.util.List<Method> anonymousMethods)
Sets the modifiable list of methods authorized for anonymous users.
|
void |
MethodAuthorizer.setAuthenticatedMethods(java.util.List<Method> authenticatedMethods)
Sets the modifiable list of methods authorized for authenticated users.
|
Modifier and Type | Method and Description |
---|---|
Method |
WrapperRequest.getMethod()
Returns the method.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Method> |
WrapperResponse.getAllowedMethods()
Returns the set of methods allowed on the requested resource.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperRequest.setMethod(Method method)
Sets the method called.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperResponse.setAllowedMethods(java.util.Set<Method> allowedMethods) |
Copyright © 2005-2012. All Rights Reserved.