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 |
Restlet.handle(Request request)
Handles a call.
|
void |
Application.handle(Request request,
Response response) |
void |
Uniform.handle(Request request,
Response response)
Handles a uniform call.
|
void |
Client.handle(Request request,
Response response) |
void |
Server.handle(Request request,
Response response) |
void |
Component.handle(Request request,
Response response) |
void |
Restlet.handle(Request request,
Response response)
Handles a call.
|
void |
Restlet.handle(Request request,
Response response,
Uniform onResponseCallback)
Handles a call.
|
void |
Restlet.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 |
---|---|
void |
CompositeHelper.handle(Request request,
Response response) |
void |
RestletHelper.handle(Request request,
Response response)
Handles a call.
|
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,
String headerName,
String headerValue)
Deprecated.
Use
Message.getHeaders() directly instead. |
void |
ClientAdapter.commit(ClientCall httpCall,
Request request,
Response response)
Commits the changes to a handled HTTP client call back into the original
uniform call.
|
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.
|
ClientCall |
ClientAdapter.toSpecific(HttpClientHelper client,
Request request)
Converts a low-level HTTP call into a high-level uniform call.
|
Constructor and Description |
---|
HttpResponse(ServerCall httpCall,
Request request)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Request |
Conneg.getRequest()
Returns the request including client preferences.
|
Modifier and Type | Method and Description |
---|---|
void |
CorsResponseHelper.addCorsResponseHeaders(Request request,
Response response)
Adds CORS headers to the given response.
|
protected void |
RangeFilter.afterHandle(Request request,
Response response) |
protected void |
CorsFilter.afterHandle(Request request,
Response response)
Add CORS headers to response
|
void |
Decoder.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.
|
void |
Encoder.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
protected int |
CorsFilter.beforeHandle(Request request,
Response response)
Skip the call to the server resource if the
CorsFilter.skippingResourceForCorsOptions
is true and if the current request use the OPTIONS method and is a CORS request. |
int |
TunnelFilter.beforeHandle(Request request,
Response response) |
int |
Decoder.beforeHandle(Request request,
Response response)
Allows filtering before its handling by the target Restlet.
|
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.
|
void |
ApplicationHelper.handle(Request request,
Response response)
In addition to the default behavior, it saves the current application
instance into the current thread.
|
boolean |
CorsResponseHelper.isCorsRequest(Request request)
Returns true if the request is a CORS request.
|
Constructor and Description |
---|
Conneg(Request request,
MetadataService metadataService)
Constructor.
|
FlexibleConneg(Request request,
MetadataService metadataService)
Constructor.
|
StrictConneg(Request request,
MetadataService metadataService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
HostRoute.beforeHandle(Request request,
Response response)
Allows filtering before processing by the next Restlet.
|
int |
ComponentServerDispatcher.beforeHandle(Request request,
Response response) |
protected int |
ComponentClientDispatcher.doHandle(Request request,
Response response) |
protected int |
ComponentServerDispatcher.doHandle(Request request,
Response response) |
Restlet |
ClientRouter.getNext(Request request,
Response response) |
float |
ClientRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
float |
HostRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
Modifier and Type | Method and Description |
---|---|
ClientCall |
HttpClientHelper.create(Request request)
Creates a low-level HTTP client call from a high-level uniform call.
|
void |
ServerHelper.handle(Request request,
Response response)
Handles a call by invoking the helped Server's
Server.handle(Request, Response) method. |
void |
FtpClientHelper.handle(Request request,
Response response) |
Status |
HttpUrlConnectionCall.sendRequest(Request request)
Sends the request to the client.
|
void |
HttpUrlConnectionCall.sendRequest(Request request,
Response response,
Uniform callback) |
Modifier and Type | Method and Description |
---|---|
static void |
HeaderUtils.addRequestHeaders(Request request,
Series<Header> headers)
|
Modifier and Type | Method and Description |
---|---|
void |
LocalClientHelper.handle(Request request,
Response response)
Handles a call.
|
void |
RiapClientHelper.handle(Request request,
Response response)
Handles a call.
|
protected void |
ClapClientHelper.handleClassLoader(Request request,
Response response,
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,
String decodedPath) |
protected void |
FileClientHelper.handleFilePut(Request request,
Response response,
String path,
File file)
Handles a PUT call for the FILE protocol.
|
protected void |
ZipClientHelper.handleGet(Request request,
Response response,
File file,
String entryName,
MetadataService metadataService)
Handles a GET call.
|
protected void |
EntityClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
protected abstract void |
LocalClientHelper.handleLocal(Request request,
Response response,
String decodedPath)
Handles a local call.
|
protected void |
FileClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
protected void |
ClapClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
protected void |
ZipClientHelper.handleLocal(Request request,
Response response,
String decodedPath)
Handles a call for a local entity.
|
protected void |
ZipClientHelper.handlePut(Request request,
Response response,
File file,
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.
|
Modifier and Type | Method and Description |
---|---|
protected Request |
ClientInvocationHandler.getRequest(Method javaMethod,
Object[] args)
Allows for child classes to modify the request.
|
Modifier and Type | Method and Description |
---|---|
static String |
AuthenticatorUtils.formatResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Formats a challenge response as a HTTP header value.
|
void |
SmtpPlainHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
AuthenticatorHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Formats a challenge response as raw credentials.
|
void |
HttpBasicHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
AuthenticatorHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders)
Parses an authorization header into a challenge response.
|
void |
HttpBasicHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
static ChallengeResponse |
AuthenticatorUtils.parseResponse(Request request,
String header,
Series<Header> 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. |
Reference |
AuthenticatorHelper.updateReference(Reference resourceRef,
ChallengeResponse challengeResponse,
Request request)
Optionally updates the request with a challenge response before sending
it.
|
static Reference |
AuthenticatorUtils.updateReference(Reference resourceRef,
ChallengeResponse challengeResponse,
Request request)
Optionally updates the request with a challenge response before sending
it.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TemplateDispatcher.afterHandle(Request request,
Response response)
If the response entity comes back with no identifier, automatically set
the request's resource reference's identifier.
|
int |
TemplateDispatcher.beforeHandle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target
resource reference.
|
int |
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. |
static String |
ReferenceUtils.format(Reference resourceRef,
boolean isProxied,
Request request)
Returns the request URI.
|
static Reference |
ReferenceUtils.update(Reference resourceRef,
Request request)
Returns the request URI.
|
Constructor and Description |
---|
CallResolver(Request request,
Response response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CookieAuthenticator.attemptRedirect(Request request,
Response response)
Attempts to redirect the user's browser to the URI provided in a query
parameter named by
CookieAuthenticator.getRedirectQueryName() . |
protected boolean |
CookieAuthenticator.authenticate(Request request,
Response response)
Restores credentials from the cookie named
CookieAuthenticator.getCookieName() if
available. |
protected int |
CookieAuthenticator.authenticated(Request request,
Response response)
Sets or updates the credentials cookie.
|
protected int |
CookieAuthenticator.beforeHandle(Request request,
Response response)
Optionally handles the login and logout actions by intercepting the HTTP
calls to the
CookieAuthenticator.getLoginPath() and CookieAuthenticator.getLogoutPath() URIs. |
protected CookieSetting |
CookieAuthenticator.getCredentialsCookie(Request request,
Response response)
Returns the credentials cookie setting.
|
protected boolean |
CookieAuthenticator.isLoggingIn(Request request,
Response response)
Indicates if the request is an attempt to log in and should be
intercepted.
|
protected boolean |
CookieAuthenticator.isLoggingOut(Request request,
Response response)
Indicates if the request is an attempt to log out and should be
intercepted.
|
protected void |
CookieAuthenticator.login(Request request,
Response response)
Processes the login request.
|
protected int |
CookieAuthenticator.logout(Request request,
Response response)
Processes the logout request.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpAwsS3Helper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
HttpDigestHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
HttpAzureSharedKeyLiteHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
void |
HttpAzureSharedKeyHelper.formatResponse(ChallengeWriter cw,
ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
char[] |
HttpDigestHelper.formatResponseDigest(ChallengeResponse challengeResponse,
Request request)
Formats the response digest.
|
protected String |
AwsVerifier.getIdentifier(Request request,
Response response)
Returns the user identifier portion of an Amazon S3 compatible
Authorization header. |
static String |
AwsUtils.getS3Signature(Request request,
char[] secret)
Returns the AWS S3 authentication compatible signature for the given
request and secret.
|
static String |
AwsUtils.getS3Signature(Request request,
Series<Header> headers,
char[] secret)
Returns the AWS S3 authentication compatible signature for the given
request and secret.
|
static String |
AwsUtils.getS3StringToSign(Request request)
Returns the string to sign.
|
static String |
AwsUtils.getS3StringToSign(Request request,
Series<Header> headers)
Returns the S3 string to sign.
|
protected char[] |
AwsVerifier.getSecret(Request request,
Response response)
Returns the signature portion of an Amazon S3 compatible
Authorization header. |
void |
HttpDigestHelper.parseResponse(ChallengeResponse challenge,
Request request,
Series<Header> httpHeaders) |
Reference |
HttpAwsQueryHelper.updateReference(Reference resourceRef,
ChallengeResponse challengeResponse,
Request request) |
int |
HttpDigestVerifier.verify(Request request,
Response response) |
int |
AwsVerifier.verify(Request request,
Response response) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.commons.fileupload.FileItem> |
RestletFileUpload.parseRequest(Request request)
Processes an RFC 1867
compliant
multipart/form-data input representation. |
Modifier and Type | Method and Description |
---|---|
protected void |
TemplateFilter.afterHandle(Request request,
Response response) |
protected Object |
TemplateFilter.createDataModel(Request request,
Response response)
Creates the FreeMarker data model for a given call.
|
Object |
TemplateRepresentation.setDataModel(Request request,
Response response)
Sets the template's data model from a request/response pair.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.inject.Provider<Request> |
RestletGuice.Module.newRequestProvider()
Creates a
Provider for the current Request . |
Modifier and Type | Method and Description |
---|---|
ClientCall |
HttpClientHelper.create(Request request)
Deprecated.
Creates a low-level HTTP client call from a high-level uniform call.
|
Modifier and Type | Method and Description |
---|---|
Status |
HttpMethodCall.sendRequest(Request request)
Deprecated.
Sends the request to the client.
|
void |
HttpMethodCall.sendRequest(Request request,
Response response,
Uniform callback)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Request |
ChallengeCallbackHandler.getRequest()
Returns the handled request.
|
Modifier and Type | Method and Description |
---|---|
protected CallbackHandler |
JaasVerifier.createCallbackHandler(Request request,
Response response)
Creates a callback handler for the given parameters.
|
void |
ChallengeCallbackHandler.setRequest(Request request)
Sets the handled request.
|
int |
JaasVerifier.verify(Request request,
Response response)
Verifies that the proposed secret is correct for the specified
identifier.
|
Constructor and Description |
---|
ChallengeCallbackHandler(Request request,
Response response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
JavaMailClientHelper.handle(Request request,
Response response) |
Modifier and Type | Method and Description |
---|---|
static Request |
JdbcClientHelper.create(String jdbcURI,
Representation request)
Deprecated.
Creates an uniform call.
|
Modifier and Type | Method and Description |
---|---|
void |
JdbcClientHelper.handle(Request request,
Response response)
Deprecated.
Handles a call.
|
Modifier and Type | Method and Description |
---|---|
protected Request |
BaseHelper.createRequest()
Creates the request object.
|
abstract Request |
ServerConnectionHelper.createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Creates a new request.
|
Request |
HttpServerHelper.createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol) |
Request |
HttpsServerHelper.createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol) |
Request |
BaseHelper.getRequest(Response response)
Returns the parent request of this response.
|
Modifier and Type | Method and Description |
---|---|
protected Connection<Client> |
ClientConnectionHelper.getBestConnection(Request request)
Tries to reuse an existing connection for the given request, or creates a
new one.
|
protected InetSocketAddress |
ClientConnectionHelper.getSocketAddress(Request request)
Returns an IP socket address representing the target host domain and port
for a given request.
|
void |
ClientConnectionHelper.handle(Request request,
Response response) |
void |
ServerConnectionHelper.handle(Request request,
Response response)
Handles a call by invoking the helped Server's
Server.handle(Request, Response) method. |
Modifier and Type | Class and Description |
---|---|
class |
HttpInboundRequest
Request wrapper for server HTTP calls.
|
class |
HttpsInboundRequest
Request wrapper for server HTTPS calls.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpInboundRequest.addHeader(Request request,
String headerName,
String headerValue)
Adds a new header to the given request.
|
Modifier and Type | Method and Description |
---|---|
Request |
ClientOutboundWay.getActualMessage() |
Modifier and Type | Method and Description |
---|---|
protected abstract Response |
ServerInboundWay.createResponse(Request request)
Creates a response object for the given request.
|
protected Response |
HttpServerInboundWay.createResponse(Request request) |
protected static String |
OutboundWay.getVersion(Request request)
Returns the protocol version.
|
Modifier and Type | Method and Description |
---|---|
Request |
Service.getLatestRequest()
Returns the latest request sent to the service.
|
Modifier and Type | Method and Description |
---|---|
void |
Service.setLatestRequest(Request latestRequest)
Sets the latest request sent to the service.
|
Constructor and Description |
---|
RdfClientResource(Context context,
Request request,
Response response)
Constructor.
|
RdfClientResource(Request request,
Response response)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static javax.servlet.http.HttpServletRequest |
ServletUtils.getRequest(Request request)
Returns the Servlet request that was used to generate the given Restlet
request.
|
Modifier and Type | Method and Description |
---|---|
void |
ServletWarClient.handle(Request request,
Response response)
Handles a call.
|
void |
ServletWarClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
Modifier and Type | Class and Description |
---|---|
class |
SipRequest
Deprecated.
Will be removed to focus on Web APIs.
|
Modifier and Type | Method and Description |
---|---|
Request |
SipClientResource.createRequest()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
SipClientResource.createResponse(Request request)
Deprecated.
|
void |
SipServerResource.init(Context context,
Request request,
Response response)
Deprecated.
|
void |
SipClientResource.setRequest(Request request)
Deprecated.
|
Constructor and Description |
---|
SipResponse(Request request)
Deprecated.
Constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
SipInboundRequest
Deprecated.
Will be removed to focus on Web APIs.
|
Modifier and Type | Method and Description |
---|---|
Request |
SipServerHelper.createRequest(Connection<Server> connection,
String methodName,
String resourceUri,
String protocol)
Deprecated.
|
Request |
SipClientHelper.getRequest(Response response)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
SipServerInboundWay.createResponse(Request request)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
SpringFinder.create(Class<? extends ServerResource> targetClass,
Request request,
Response response)
Calls the
SpringFinder.create() method that can be configured as a lookup
method in Spring. |
ServerResource |
SpringFinder.create(Request request,
Response response) |
Modifier and Type | Method and Description |
---|---|
protected void |
TemplateFilter.afterHandle(Request request,
Response response) |
void |
TemplateRepresentation.setDataModel(Request request,
Response response)
Sets the template's data model from a request/response pair.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TemplateFilter.afterHandle(Request request,
Response response) |
void |
TemplateRepresentation.setDataModel(Request request,
Response response)
Sets the template's data model from a request/response pair.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
WadlApplication.canDescribe(String remainingPart,
Request request,
Response response)
Indicates if the application and all its resources can be described using
WADL.
|
protected ApplicationInfo |
WadlApplication.getApplicationInfo(Request request,
Response response)
Returns a WADL description of the current application.
|
protected Variant |
WadlApplication.getPreferredWadlVariant(Request request)
Returns the preferred WADL variant according to the client preferences
specified in the request.
|
void |
WadlApplication.handle(Request request,
Response response)
Handles the requests normally in all cases then handles the special case
of the OPTIONS requests that exactly target the application.
|
protected Representation |
WadlApplication.wadlRepresent(Request request,
Response response)
Represents the resource as a WADL description.
|
protected Representation |
WadlApplication.wadlRepresent(Variant variant,
Request request,
Response response)
Represents the resource as a WADL description for the given variant.
|
Modifier and Type | Method and Description |
---|---|
void |
XdbServletWarClient.handle(Request request,
Response response)
Deprecated.
|
void |
XdbServletWarClientHelper.handleLocal(Request request,
Response response,
String decodedPath)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Transformer.afterHandle(Request request,
Response response) |
protected int |
Transformer.beforeHandle(Request request,
Response response) |
Modifier and Type | Method and Description |
---|---|
Request |
ClientResource.createRequest()
Creates a new request by cloning the one wrapped by this class.
|
Request |
Resource.getRequest()
Returns the handled request.
|
Modifier and Type | Method and Description |
---|---|
ServerResource |
Finder.create(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 Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request.
|
ServerResource |
Finder.find(Request request,
Response response)
Finds the target
ServerResource if available. |
void |
Directory.handle(Request request,
Response response) |
void |
Finder.handle(Request request,
Response response)
Handles a call.
|
protected void |
ClientResource.handle(Request request,
Response response,
List<Reference> references,
int retryAttempt,
Uniform next)
Handle the call and follow redirection for safe methods.
|
Response |
ClientResource.handleOutbound(Request request)
Handles the outbound call by invoking the next handler.
|
void |
Resource.init(Context context,
Request request,
Response response)
Initialization method setting the environment of the current resource
instance.
|
protected void |
ClientResource.redirect(Request request,
Response response,
List<Reference> references,
int retryAttempt,
Uniform next)
Effectively redirects a client call.
|
protected void |
ClientResource.retry(Request request,
Response response,
List<Reference> references,
int retryAttempt,
Uniform next)
Effectively retries a failed client call.
|
void |
Resource.setRequest(Request request)
Sets the handled request.
|
Constructor and Description |
---|
ClientResource(Context context,
Request request)
Constructor.
|
ClientResource(Context context,
Request request,
Response response)
Constructor.
|
ClientResource(Request request)
Constructor.
|
ClientResource(Request request,
Response response)
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 |
TemplateRoute.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 |
Extractor.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)
|
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 by automatically resolving
URI template variables found using the
Template class using the
request and response as data models. |
void |
Redirector.handle(Request request,
Response response)
Handles a call by redirecting using the selected redirection mode.
|
void |
Router.handle(Request request,
Response response)
Handles a call by invoking the next Restlet if it is available.
|
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(String formattedString,
Request request)
Attempts to parse a formatted reference.
|
abstract float |
Route.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
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 |
---|---|
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 boolean |
CertificateAuthenticator.authenticate(Request request,
Response response)
Authenticates the call using the X.509 client certificate.
|
protected int |
Authenticator.authenticated(Request request,
Response response)
Invoked upon successful authentication.
|
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.
|
boolean |
ConfidentialAuthorizer.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, only if
Authenticator.isMultiAuthenticating() returns true and if
ClientInfo.isAuthenticated() returns false. |
protected int |
Authorizer.beforeHandle(Request request,
Response response) |
protected User |
SecretVerifier.createUser(String identifier,
Request request,
Response response)
Called back to create a new user when valid credentials are provided.
|
protected 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 |
---|---|
Variant |
ConnegService.getPreferredVariant(List<? extends Variant> variants,
Request request,
MetadataService metadataService)
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. |
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Deprecated.
|
Status |
StatusService.getStatus(Throwable throwable,
Request request,
Response response)
Deprecated.
Use
StatusService.toStatus(Throwable, Request, Response) instead. |
boolean |
LogService.isLoggable(Request request)
Indicates if the call should be logged during the processing chain.
|
Representation |
StatusService.toRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status.
|
Status |
StatusService.toStatus(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–2016. All rights reserved.