Package | Description |
---|---|
org.restlet |
Core classes of the API.
|
org.restlet.engine |
Implementation of Restlet API.
|
org.restlet.engine.application |
Supports Restlet applications.
|
org.restlet.engine.component |
Supports Restlet components.
|
org.restlet.engine.http |
Supports HTTP connectors.
|
org.restlet.engine.http.adapter |
Adapters between low-level HTTP calls and high-level Restlet Request and
Response objects.
|
org.restlet.engine.http.connector |
New advanced internal HTTP connector.
|
org.restlet.engine.http.header |
Supports HTTP header parsing and formatting.
|
org.restlet.engine.http.security |
Supports HTTP security.
|
org.restlet.engine.local |
Supports local connectors and resources.
|
org.restlet.engine.log |
Supports the log service.
|
org.restlet.engine.riap |
Supports RIAP (Restlet Internal Access Protocol) connectors.
|
org.restlet.engine.security |
Supports security.
|
org.restlet.engine.util |
General utilities.
|
org.restlet.resource |
Client and server resource classes.
|
org.restlet.routing |
Classes related to call routing.
|
org.restlet.security |
Classes related to security.
|
org.restlet.service |
Services used by applications and components.
|
org.restlet.util |
Various utility classes.
|
Modifier and Type | Method and Description |
---|---|
static Request |
Request.getCurrent()
Returns the request associated to the current thread.
|
Request |
Response.getRequest()
Returns the associated request
|
Modifier and Type | Method and Description |
---|---|
Response |
Client.handle(Request request)
Handles a call.
|
void |
Client.handle(Request request,
Response response) |
void |
Application.handle(Request request,
Response response) |
void |
Server.handle(Request request,
Response response) |
void |
Restlet.handle(Request request,
Response response)
Handles a call.
|
void |
Component.handle(Request request,
Response response) |
void |
Uniform.handle(Request request,
Response response)
Handles a uniform call.
|
void |
Client.handle(Request request,
Response response,
Uniform onResponseCallback)
Handles a call.
|
void |
Client.handle(Request request,
Uniform onReceivedCallback)
Handles a call.
|
void |
Response.setRequest(Request request)
Sets the associated request.
|
Constructor and Description |
---|
Request(Request request)
Copy constructor.
|
Response(Request request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TemplateDispatcher.doHandle(Request request,
Response response)
Actually handles the call.
|
void |
TemplateDispatcher.handle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target
resource reference.
|
void |
ServerHelper.handle(Request request,
Response response)
Handles a call by invoking the helped Server's
Server.handle(Request, Response) method. |
void |
ChainHelper.handle(Request request,
Response response) |
void |
RestletHelper.handle(Request request,
Response response)
Handles a call.
|
Modifier and Type | Method and Description |
---|---|
void |
Decoder.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
protected void |
RangeFilter.afterHandle(Request request,
Response response) |
void |
Encoder.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
void |
StatusFilter.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
int |
Decoder.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
int |
TunnelFilter.beforeHandle(Request request,
Response response) |
int |
Encoder.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
protected int |
StatusFilter.doHandle(Request request,
Response response)
Handles the call by distributing it to the next Restlet.
|
protected Representation |
StatusFilter.getDefaultRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
protected Representation |
StatusFilter.getRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
protected Status |
StatusFilter.getStatus(java.lang.Throwable throwable,
Request request,
Response response)
Returns a status for a given exception or error.
|
void |
ApplicationHelper.handle(Request request,
Response response)
In addition to the default behavior, it saves the current application
instance into the current thread.
|
Modifier and Type | Method and Description |
---|---|
protected int |
HostRoute.beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
void |
ChildClientDispatcher.doHandle(Request request,
Response response)
Transmits the call to the parent component except if the call is internal
as denoted by the
Protocol.RIAP protocol and targets this child
application. |
protected void |
ComponentClientDispatcher.doHandle(Request request,
Response response) |
protected void |
ComponentServerDispatcher.doHandle(Request request,
Response response) |
Restlet |
ClientRouter.getNext(Request request,
Response response) |
float |
HostRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
float |
ClientRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
Modifier and Type | Class and Description |
---|---|
class |
HttpRequest
Request wrapper for server HTTP calls.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpRequest.addHeader(Request request,
java.lang.String headerName,
java.lang.String headerValue)
Adds a new header to the given request.
|
abstract ClientCall |
HttpClientHelper.create(Request request)
Creates a low-level HTTP client call from a high-level request.
|
void |
HttpClientHelper.handle(Request request,
Response response) |
Status |
ClientCall.sendRequest(Request request)
Sends the request to the client.
|
void |
ClientCall.sendRequest(Request request,
Response response,
Uniform callback)
Sends the request to the client.
|
protected boolean |
ClientCall.shouldRequestBeChunked(Request request)
Indicates if the request entity should be chunked.
|
Constructor and Description |
---|
HttpResponse(ServerCall httpCall,
Request request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ClientAdapter.commit(ClientCall httpCall,
Request request,
Response response)
Commits the changes to a handled HTTP client call back into the original
uniform call.
|
ClientCall |
ClientAdapter.toSpecific(HttpClientHelper client,
Request request)
Converts a low-level HTTP call into a high-level uniform call.
|
Modifier and Type | Class and Description |
---|---|
class |
ConnectedRequest
Request wrapper for server HTTP calls.
|
Modifier and Type | Method and Description |
---|---|
static void |
ConnectedRequest.addHeader(Request request,
java.lang.String headerName,
java.lang.String headerValue)
Adds a new header to the given request.
|
protected void |
ClientConnection.addRequestHeaders(Request request,
Series<Parameter> headers)
Adds the request headers.
|
protected Response |
BaseHelper.createResponse(Request request)
Creates the response object.
|
protected Connection<Client> |
BaseClientHelper.getBestConnection(Request request)
Tries to reuse an existing connection for the given request, or creates a
new one.
|
protected java.net.InetSocketAddress |
BaseClientHelper.getSocketAddress(Request request)
Returns an IP socket address representing the target host domain and port
for a given request.
|
void |
BaseClientHelper.handle(Request request,
Response response) |
void |
BaseServerHelper.handle(Request request,
Response response)
Handles a call by invoking the helped Server's
Server.handle(Request, Response) method. |
Modifier and Type | Method and Description |
---|---|
static void |
HeaderUtils.addRequestHeaders(Request request,
Series<Parameter> headers)
|
Modifier and Type | Method and Description |
---|---|
void |
HttpBasicHelper.formatRawResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders) |
void |
HttpBasicHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders) |
Modifier and Type | Method and Description |
---|---|
void |
LocalClientHelper.handle(Request request,
Response response)
Handles a call.
|
protected void |
ClapClientHelper.handleClassLoader(Request request,
Response response,
java.lang.ClassLoader classLoader)
Handles a call with a given class loader.
|
protected void |
EntityClientHelper.handleEntityGet(Request request,
Response response,
Entity entity)
Handles a GET call.
|
protected void |
FileClientHelper.handleFile(Request request,
Response response,
java.lang.String decodedPath) |
protected void |
FileClientHelper.handleFilePut(Request request,
Response response,
java.lang.String path,
java.io.File file)
Handles a PUT call for the FILE protocol.
|
protected void |
ZipClientHelper.handleGet(Request request,
Response response,
java.io.File file,
java.lang.String entryName,
MetadataService metadataService)
Handles a GET call.
|
protected void |
ZipClientHelper.handleLocal(Request request,
Response response,
java.lang.String decodedPath)
Handles a call for a local entity.
|
protected void |
EntityClientHelper.handleLocal(Request request,
Response response,
java.lang.String decodedPath) |
protected void |
FileClientHelper.handleLocal(Request request,
Response response,
java.lang.String decodedPath) |
protected void |
ClapClientHelper.handleLocal(Request request,
Response response,
java.lang.String decodedPath) |
protected abstract void |
LocalClientHelper.handleLocal(Request request,
Response response,
java.lang.String decodedPath)
Handles a local call.
|
protected void |
ZipClientHelper.handlePut(Request request,
Response response,
java.io.File file,
java.lang.String entryName)
Handles a PUT call.
|
Modifier and Type | Method and Description |
---|---|
protected void |
LogFilter.afterHandle(Request request,
Response response)
Allows filtering after processing by the next Restlet.
|
protected int |
LogFilter.beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
protected java.lang.String |
LogFilter.format(Request request,
Response response)
Format a log entry.
|
protected java.lang.String |
LogFilter.formatDefault(Request request,
Response response,
int duration)
Format a log entry using the default format.
|
Modifier and Type | Method and Description |
---|---|
void |
RiapClientHelper.handle(Request request,
Response response)
Handles a call.
|
Modifier and Type | Method and Description |
---|---|
int |
AuthenticatorHelper.authenticate(ChallengeResponse cr,
Request request,
Guard guard)
Deprecated.
See new org.restlet.security package.
|
static int |
AuthenticatorUtils.authenticate(Request request,
Guard guard)
Deprecated.
See new org.restlet.security package.
|
void |
SmtpPlainHelper.formatRawResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders) |
void |
AuthenticatorHelper.formatRawResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
Formats a challenge response as raw credentials.
|
static java.lang.String |
AuthenticatorUtils.formatResponse(ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
Formats a challenge response as a HTTP header value.
|
java.lang.String |
AuthenticatorHelper.formatResponse(ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
Formats a challenge response as a HTTP header value.
|
char[] |
AuthenticatorHelper.formatSecret(ChallengeResponse challengeResponse,
Request request,
Response response,
java.lang.String identifier,
char[] baseSecret,
java.lang.String baseSecretAlgorithm)
Formats the secret of a challenge response.
|
void |
AuthenticatorHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Parameter> httpHeaders)
Parses an authorization header into a challenge response.
|
static ChallengeResponse |
AuthenticatorUtils.parseResponse(Request request,
java.lang.String header,
Series<Parameter> httpHeaders)
Parses an authorization header into a challenge response.
|
static void |
AuthenticatorUtils.update(ChallengeResponse challengeResponse,
Request request,
Response response)
Updates a ChallengeResponse object according to given request and
response.
|
Constructor and Description |
---|
CallResolver(Request request,
Response response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Request |
ClientResource.createRequest(Request prototype)
Creates a new request by cloning the given one.
|
Request |
Handler.getRequest()
Deprecated.
Returns the request.
|
Request |
UniformResource.getRequest()
Returns the handled request.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
Finder.create(java.lang.Class<? extends ServerResource> targetClass,
Request request,
Response response)
Creates a new instance of a given
ServerResource subclass. |
ServerResource |
Finder.create(Request request,
Response response)
Creates a new instance of the
ServerResource subclass designated
by the "targetClass" property. |
protected Request |
ClientResource.createRequest(Request prototype)
Creates a new request by cloning the given one.
|
protected Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request.
|
protected Handler |
Finder.createTarget(java.lang.Class<? extends Handler> targetClass,
Request request,
Response response)
Deprecated.
Use
Finder.create(Request, Response) instead. |
protected Handler |
Finder.createTarget(Request request,
Response response)
Deprecated.
Use
Finder.create(Request, Response) instead. |
ServerResource |
Finder.find(Request request,
Response response)
Finds the target
ServerResource if available. |
Handler |
Finder.findTarget(Request request,
Response response)
Deprecated.
Use
Finder.find(Request, Response) instead. |
void |
Directory.handle(Request request,
Response response) |
void |
Finder.handle(Request request,
Response response)
Handles a call.
|
void |
Handler.init(Context context,
Request request,
Response response)
Deprecated.
Initialize the resource with its context.
|
void |
Resource.init(Context context,
Request request,
Response response)
Deprecated.
Initialize the resource with its context.
|
void |
UniformResource.init(Context context,
Request request,
Response response)
Initialization method setting the environment of the current resource
instance.
|
void |
Handler.setRequest(Request request)
Deprecated.
Sets the request to handle.
|
void |
UniformResource.setRequest(Request request)
Sets the handled request.
|
Constructor and Description |
---|
ClientResource(Context context,
Request request,
Response response)
Constructor.
|
ClientResource(Request request,
Response response)
Constructor.
|
Handler(Context context,
Request request,
Response response)
Deprecated.
Normal constructor.
|
Resource(Context context,
Request request,
Response response)
Deprecated.
Normal constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Filter.afterHandle(Request request,
Response response)
Allows filtering after processing by the next Restlet.
|
protected int |
Validator.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
protected int |
Route.beforeHandle(Request request,
Response response)
Deprecated.
Allows filtering before its handling by the target Restlet.
|
protected int |
Extractor.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
protected int |
Filter.beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
protected int |
TemplateRoute.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
protected int |
Filter.doHandle(Request request,
Response response)
Handles the call by distributing it to the next Restlet.
|
protected void |
Router.doHandle(Restlet next,
Request request,
Response response)
|
java.lang.String |
Template.format(Request request,
Response response)
Creates a formatted string based on the given request and response.
|
protected Route |
Router.getCustom(Request request,
Response response)
Returns the matched route according to a custom algorithm.
|
Restlet |
Router.getNext(Request request,
Response response)
Returns the next Restlet if available.
|
protected Reference |
Redirector.getTargetRef(Request request,
Response response)
Returns the target reference to redirect to.
|
void |
Router.handle(Request request,
Response response)
Handles a call by invoking the next Restlet if it is available.
|
void |
Redirector.handle(Request request,
Response response)
Handles a call by redirecting using the selected redirection mode.
|
void |
Filter.handle(Request request,
Response response)
Handles a call by first invoking the beforeHandle() method for
pre-filtering, then distributing the call to the next Restlet via the
doHandle() method.
|
protected void |
Redirector.inboundServerRedirect(Reference targetRef,
Request request,
Response response)
Redirects a given call to a target reference.
|
protected void |
Redirector.outboundServerRedirect(Reference targetRef,
Request request,
Response response)
Redirects a given call to a target reference.
|
int |
Template.parse(java.lang.String formattedString,
Request request)
Attempts to parse a formatted reference.
|
protected void |
Redirector.redirectDispatcher(Reference targetRef,
Request request,
Response response)
Deprecated.
|
float |
TemplateRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
protected void |
Redirector.serverRedirect(Restlet next,
Reference targetRef,
Request request,
Response response)
Redirects a given call on the server-side to a next Restlet with a given
target reference.
|
Modifier and Type | Method and Description |
---|---|
void |
Guard.accept(Request request,
Response response)
Deprecated.
Accepts the call.
|
int |
Guard.authenticate(Request request)
Deprecated.
Indicates if the call is properly authenticated.
|
protected boolean |
ChallengeAuthenticator.authenticate(Request request,
Response response)
Authenticates the call, relying on the verifier to check the credentials
provided (in general an identifier + secret couple).
|
protected abstract boolean |
Authenticator.authenticate(Request request,
Response response)
Attempts to authenticate the subject sending the request.
|
protected int |
Authenticator.authenticated(Request request,
Response response)
Invoked upon successful authentication.
|
boolean |
Guard.authorize(Request request)
Deprecated.
Indicates if the request is authorized to pass through the Guard.
|
boolean |
RoleAuthorizer.authorize(Request request,
Response response)
Authorizes the request only if its subject is in one of the authorized
roles and in none of the forbidden ones.
|
boolean |
MethodAuthorizer.authorize(Request request,
Response response)
Authorizes the request only if its method is one of the authorized
methods.
|
protected abstract boolean |
Authorizer.authorize(Request request,
Response response)
Attempts to authorize the request.
|
protected int |
Authorizer.authorized(Request request,
Response response)
Invoked upon successful authorization.
|
protected int |
Authenticator.beforeHandle(Request request,
Response response)
Handles the authentication by first invoking the
Authenticator.authenticate(Request, Response) method. |
protected int |
Authorizer.beforeHandle(Request request,
Response response) |
boolean |
Guard.checkSecret(Request request,
java.lang.String identifier,
char[] secret)
Deprecated.
Indicates if the secret is valid for the given identifier.
|
int |
Guard.doHandle(Request request,
Response response)
Deprecated.
Handles the call by distributing it to the next Restlet.
|
protected java.lang.String |
SecretVerifier.getIdentifier(Request request,
Response response)
Returns the user identifier.
|
protected char[] |
SecretVerifier.getSecret(Request request,
Response response)
Returns the secret provided by the user.
|
protected int |
Authenticator.unauthenticated(Request request,
Response response)
Invoked upon failed authentication.
|
protected int |
Authorizer.unauthorized(Request request,
Response response)
Invoked upon failed authorization.
|
int |
Verifier.verify(Request request,
Response response)
Attempts to verify the credentials provided by the client user sending
the request.
|
int |
SecretVerifier.verify(Request request,
Response response)
Verifies that the proposed secret is correct for the specified request.
|
Modifier and Type | Method and Description |
---|---|
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
In order to customize the default representation, this method can be overridden. |
Status |
StatusService.getStatus(java.lang.Throwable throwable,
Request request,
Response response)
Returns a status for a given exception or error.
|
Modifier and Type | Class and Description |
---|---|
class |
WrapperRequest
Request wrapper.
|
Modifier and Type | Method and Description |
---|---|
Request |
WrapperResponse.getRequest()
Returns the associated request
|
protected Request |
WrapperRequest.getWrappedRequest()
Returns the wrapped request.
|
Modifier and Type | Method and Description |
---|---|
static Resolver<?> |
Resolver.createResolver(Request request,
Response response)
Creates a resolver that is based on a call (request, response couple).
|
Route |
RouteList.getBest(Request request,
Response response,
float requiredScore)
Returns the best route match for a given call.
|
Route |
RouteList.getFirst(Request request,
Response response,
float requiredScore)
Returns the first route match for a given call.
|
Route |
RouteList.getLast(Request request,
Response response,
float requiredScore)
Returns the last route match for a given call.
|
Route |
RouteList.getNext(Request request,
Response response,
float requiredScore)
Returns a next route match in a round robin mode for a given call.
|
Route |
RouteList.getRandom(Request request,
Response response,
float requiredScore)
Returns a random route match for a given call.
|
void |
WrapperRestlet.handle(Request request,
Response response) |
void |
WrapperResponse.setRequest(Request request)
Sets the associated request.
|
Constructor and Description |
---|
WrapperRequest(Request wrappedRequest)
Constructor.
|
Copyright © 2005-2012. All Rights Reserved.