This status code means that the method could not be performed on the
resource because the requested action depended on another action and that
action failed.
The resource identified by the request is only capable of generating
response entities whose content characteristics do not match the user's
requirements (in Accept* headers).
The server has not found anything matching the Request-URI or the server
does not wish to reveal exactly why the request has been refused, or no
other response is applicable.
Sent by the server when an HTTP client opens a connection, but has never
sent a request (or never sent the blank line that signals the end of the
request).
This status code means the server understands the content type of the
request entity (syntactically correct) but was unable to process the
contained instructions.
The server is refusing to service the request because the entity of the
request is in a format not supported by the requested resource for the
requested method.
Generic status code sent by a client connector when an error occurs
during the process of a request to its server or the process of a
response to its client.
COPY -
Static variable in class org.restlet.data.Method
Creates a duplicate of the source resource, identified by the
Request-URI, in the destination resource, identified by the URI in the
Destination header.
Copies the parameters whose name is a key in the given map. If a
matching parameter is found, its value is put in the map. If
multiple values are found, a list is created and set in the map.
Returns the list of client IP addresses. The first address is the
one of the immediate client component as returned by the
getClientAdress() method and the last address should correspond to the
origin client (frequently a user agent).
Returns a channel with the representation's content. If it is
supported by a file, a read-only instance of FileChannel is returned.
This method is ensured to return a fresh channel for each invocation
unless it is a transient representation, in which case null is returned.
Returns a channel with the representation's content. If it is
supported by a file, a read-only instance of FileChannel is returned.
This method is ensured to return a fresh channel for each invocation
unless it is a transient representation, in which case null is returned.
Returns the entity as a DOM representation. Note that this triggers
the parsing of the entity into a reusable DOM document stored in memory.
This method and the related getEntity*() methods can only be invoked
once.
Returns the entity as a DOM representation. Note that this triggers
the parsing of the entity into a reusable DOM document stored in memory.
This method and the related getEntity*() methods can only be invoked
once.
Returns the entity as a form. Note that this triggers the parsing
of the entity. This method and the related getEntity*() methods can
only be invoked once.
Returns the entity as a DOM representation. Note that this triggers
the parsing of the entity into a reusable DOM document stored in memory.
This method and the related getEntity*() methods can only be invoked
once.
Returns the entity as a DOM representation. Note that this triggers
the parsing of the entity into a reusable DOM document stored in memory.
This method and the related getEntity*() methods can only be invoked
once.
Returns the best variant for a given resource according the the client
preferences: accepted languages, accepted character sets, accepted media
types and accepted encodings. A default language is provided in case
the variants don't match the client preferences.
Returns the best variant for a given resource according the the client
preferences. A default language is provided in case the resource's
variants don't match the client preferences.
Returns the best variant representation for a given resource according
the the client preferences. A default language is provided in case
the variants don't match the client preferences.
Handles a call by first invoking the beforeHandle() method for
pre-filtering, then distributing the call to the next Restlet via the
doHandle() method.
This interim response (the client has to wait for the final response) is
used to inform the client that the initial part of the request has been
received and has not yet been rejected or completed by the server.
This interim response is used to inform the client that the server has
accepted the complete request, but has not yet completed it since the
server has a reasonable expectation that the request will take
significant time to complete.
The server understands and is willing to comply with the client's
request, via the Upgrade message header field, for a change in the
application protocol being used on this connection.
Indicates if some fresh content is available, without having to actually
call one of the content manipulation method like getStream() that would
actually consume it.
Indicates if some fresh content is available, without having to actually
call one of the content manipulation method like getStream() that would
actually consume it.
In this mode, the client is permanently redirected to the URI generated
from the target URI pattern. See
org.restlet.data.Status.REDIRECTION_PERMANENT.
In this mode, the client is temporarily redirected to the URI generated
from the target URI pattern. See
org.restlet.data.Status.REDIRECTION_TEMPORARY.
MOVE -
Static variable in class org.restlet.data.Method
Logical equivalent of a copy, followed by consistency maintenance
processing, followed by a delete of the source where all three actions
are performed atomically.
The requested resource resides temporarily under a different URI which
should not be used for future requests by the client (use status codes
303 or 307 instead since this status has been manifestly misused).
The server lets the user agent choosing one of the multiple
representations of the requested resource, each representation having its
own specific location provided in the response entity.
The server, while acting as a gateway or proxy, received an invalid
response from the upstream server it accessed in attempting to fulfill
the request.
This status code means the method could not be performed on the resource
because the server is unable to store the representation needed to
successfully complete the request.
The server has fulfilled the request but does not need to return an
entity-body (for example after a DELETE), and might want to return
updated metainformation.
The request has succeeded but the returned metainformation in the
entity-header do not come from the origin server, but is gathered from a
local or a third-party copy.
Returns an array containing all of the elements in this list in proper
sequence; the runtime type of the returned array is that of the specified
array.
Converts an input stream to a string. As this method uses the
InputstreamReader class, the default character set is used for decoding
the input stream.