Modifier and Type | Method and Description |
---|---|
static Response |
Response.getCurrent()
Returns the response associated to the current thread.
|
Response |
Restlet.handle(Request request)
Handles a call.
|
Modifier and Type | Method and Description |
---|---|
void |
Request.commit(Response response)
Asks the server connector to immediately commit the given response
associated to this request, making it ready to be sent back to the
client.
|
void |
Restlet.handle(Request request,
Response response)
Handles a call.
|
void |
Component.handle(Request request,
Response response) |
void |
Server.handle(Request request,
Response response) |
void |
Uniform.handle(Request request,
Response response)
Handles a uniform call.
|
void |
Client.handle(Request request,
Response response) |
void |
Application.handle(Request request,
Response response) |
void |
Restlet.handle(Request request,
Response response,
Uniform onResponseCallback)
Handles a call.
|
static void |
Response.setCurrent(Response response)
Sets the response associated with the current thread.
|
Constructor and Description |
---|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
char[] secret)
Constructor.
|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
char[] secret,
String secretAlgorithm)
Constructor.
|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
String secret)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
RestletHelper.handle(Request request,
Response response)
Handles a call.
|
void |
CompositeHelper.handle(Request request,
Response response) |
Modifier and Type | Class and Description |
---|---|
class |
HttpResponse
Response wrapper for server HTTP calls.
|
Modifier and Type | Method and Description |
---|---|
static void |
HttpResponse.addHeader(Response response,
String headerName,
String headerValue)
Adds a new header to the given request.
|
void |
ClientAdapter.commit(ClientCall httpCall,
Request request,
Response response)
Commits the changes to a handled HTTP client call back into the original
uniform call.
|
Representation |
ClientCall.getResponseEntity(Response response)
Returns the response entity if available.
|
void |
HttpClientHelper.handle(Request request,
Response response) |
protected void |
ClientAdapter.readResponseHeaders(ClientCall httpCall,
Response response)
Reads the response headers of a handled HTTP client call to update the
original uniform call.
|
void |
ClientCall.sendRequest(Request request,
Response response,
Uniform callback)
Sends the request to the client.
|
void |
ServerCall.sendResponse(Response response)
Sends the response back to the client.
|
boolean |
ServerCall.shouldResponseBeChunked(Response response)
Indicates if the response should be chunked because its length is
unknown.
|
void |
ClientAdapter.updateResponse(Response response,
Status status,
ClientCall httpCall)
Updates the response with information from the lower-level HTTP client
call.
|
protected void |
ServerCall.writeResponseHead(Response response)
Writes the response status line and headers.
|
protected void |
ServerCall.writeResponseHead(Response response,
OutputStream headStream)
Writes the response head to the given output stream.
|
Modifier and Type | Method and Description |
---|---|
void |
CorsResponseHelper.addCorsResponseHeaders(Request request,
Response response)
Adds CORS headers to the given response.
|
void |
StatusFilter.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
void |
Decoder.afterHandle(Request request,
Response response)
Allows filtering after its handling by the target Restlet.
|
protected void |
RangeFilter.afterHandle(Request request,
Response response) |
protected void |
CorsFilter.afterHandle(Request request,
Response response)
Add CORS headers to response
|
void |
Encoder.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) |
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 |
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.
|
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 |
ComponentServerDispatcher.doHandle(Request request,
Response response) |
protected int |
ComponentClientDispatcher.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 | Method and Description |
---|---|
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) |
void |
HttpUrlConnectionCall.sendRequest(Request request,
Response response,
Uniform callback) |
void |
HttpExchangeCall.writeResponseHead(Response restletResponse) |
Modifier and Type | Method and Description |
---|---|
static void |
HeaderUtils.addResponseHeaders(Response response,
Series<Header> headers)
|
static void |
HeaderUtils.copyExtensionHeaders(Series<Header> headers,
Response response)
Copies extension headers into a response.
|
static void |
HeaderUtils.copyResponseTransportHeaders(Series<Header> headers,
Response response)
Copies headers into a response.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
DirectoryServerResource.getRepresentation(String resourceUri,
MediaType acceptedMediaType)
Returns a representation of the resource at the target URI.
|
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.handleFileDelete(Response response,
File file)
Handles a DELETE call for the FILE protocol.
|
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 abstract void |
LocalClientHelper.handleLocal(Request request,
Response response,
String decodedPath)
Handles a local call.
|
protected void |
ZipClientHelper.handleLocal(Request request,
Response response,
String decodedPath)
Handles a call for a local entity.
|
protected void |
FileClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
protected void |
EntityClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
protected void |
ClapClientHelper.handleLocal(Request request,
Response response,
String decodedPath) |
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 |
---|---|
static String |
AuthenticatorUtils.formatRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Formats a challenge request as a HTTP header value.
|
void |
HttpBasicHelper.formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
void |
AuthenticatorHelper.formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Formats a challenge request as raw credentials.
|
void |
HttpBasicHelper.parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
void |
AuthenticatorHelper.parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders)
Parses an authenticate header into a challenge request.
|
static List<ChallengeRequest> |
AuthenticatorUtils.parseRequest(Response response,
String header,
Series<Header> httpHeaders)
Parses an authenticate header into a list of challenge request.
|
static void |
AuthenticatorUtils.update(ChallengeResponse challengeResponse,
Request request,
Response response)
Updates a
ChallengeResponse object according to given request and
response. |
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. |
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. |
void |
CookieAuthenticator.challenge(Response response,
boolean stale)
This method should be overridden to return a login form representation.
By default, it redirects the user's browser to the CookieAuthenticator.getLoginFormPath() URI, adding the URI of the target resource as
a query parameter of name CookieAuthenticator.getRedirectQueryName() .In case the getLoginFormPath() is not set, it calls the parent's method. |
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 |
HttpDigestHelper.formatRequest(ChallengeWriter cw,
ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
protected String |
AwsVerifier.getIdentifier(Request request,
Response response)
Returns the user identifier portion of an Amazon S3 compatible
Authorization header. |
protected char[] |
AwsVerifier.getSecret(Request request,
Response response)
Returns the signature portion of an Amazon S3 compatible
Authorization header. |
void |
HttpDigestHelper.parseRequest(ChallengeRequest challenge,
Response response,
Series<Header> httpHeaders) |
int |
AwsVerifier.verify(Request request,
Response response) |
int |
HttpDigestVerifier.verify(Request request,
Response response) |
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<Response> |
RestletGuice.Module.newResponseProvider()
Creates a
Provider for the current Response . |
Modifier and Type | Method and Description |
---|---|
void |
HttpMethodCall.sendRequest(Request request,
Response response,
Uniform callback)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Response |
ChallengeCallbackHandler.getResponse()
Returns the handled response.
|
Modifier and Type | Method and Description |
---|---|
protected CallbackHandler |
JaasVerifier.createCallbackHandler(Request request,
Response response)
Creates a callback handler for the given parameters.
|
void |
ChallengeCallbackHandler.setResponse(Response response)
Sets the handled response.
|
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 |
---|---|
void |
JdbcClientHelper.handle(Request request,
Response response)
Deprecated.
Handles a call.
|
Modifier and Type | Field and Description |
---|---|
protected Queue<Response> |
BaseHelper.inboundMessages
The queue of inbound messages.
|
protected Queue<Response> |
BaseHelper.outboundMessages
The queue of outbound messages.
|
Modifier and Type | Method and Description |
---|---|
Queue<Response> |
BaseHelper.getInboundMessages()
Returns the queue of inbound messages pending for handling.
|
protected Queue<Response> |
BaseHelper.getOutboundMessages()
Returns the queue of outbound messages pending for handling.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionHelper.addOutboundMessage(Response response)
Add the outbound message to the queue and wake up the IO controller.
|
protected boolean |
HttpServerHelper.canHandle(Connection<Server> connection,
Response response) |
protected abstract boolean |
ServerConnectionHelper.canHandle(Connection<Server> connection,
Response response)
Indicates if the connection can handle the given response at this point
in time.
|
abstract void |
BaseHelper.doHandleInbound(Response response)
Effectively handles an inbound message.
|
void |
ServerConnectionHelper.doHandleInbound(Response response) |
void |
ClientConnectionHelper.doHandleInbound(Response response) |
abstract void |
BaseHelper.doHandleOutbound(Response response)
Effectively handles an outbound message.
|
void |
ServerConnectionHelper.doHandleOutbound(Response response) |
void |
ClientConnectionHelper.doHandleOutbound(Response response) |
Request |
BaseHelper.getRequest(Response response)
Returns the parent request of this response.
|
void |
ServerConnectionHelper.handle(Request request,
Response response)
Handles a call by invoking the helped Server's
Server.handle(Request, Response) method. |
void |
ClientConnectionHelper.handle(Request request,
Response response) |
protected abstract void |
BaseHelper.handleInbound(Response response)
Handle the given inbound message.
|
protected void |
ServerConnectionHelper.handleInbound(Response response) |
protected void |
ClientConnectionHelper.handleInbound(Response response) |
protected void |
BaseHelper.handleInbound(Response response,
boolean synchronous)
Handle the given inbound message.
|
protected abstract void |
BaseHelper.handleOutbound(Response response)
Handle the given outbound message.
|
protected void |
ServerConnectionHelper.handleOutbound(Response response) |
protected void |
ClientConnectionHelper.handleOutbound(Response response) |
protected void |
BaseHelper.handleOutbound(Response response,
boolean synchronous)
Handle the given outbound message.
|
void |
BaseHelper.onInboundError(Status status,
Response message)
Called on error.
|
void |
BaseHelper.onOutboundError(Status status,
Response message)
Called on error.
|
protected void |
ClientConnectionHelper.unblock(Response response)
Unblocks the thread that handles the given request/response pair.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.commit(Response response)
Asks the server connector to immediately commit the given response
associated to this request, making it ready to be sent back to the
client.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpInboundRequest.commit(Response response) |
Modifier and Type | Method and Description |
---|---|
protected Response |
HttpServerInboundWay.createResponse(Request request) |
protected abstract Response |
ServerInboundWay.createResponse(Request request)
Creates a response object for the given request.
|
protected abstract Response |
ClientInboundWay.createResponse(Status status)
Creates a response object for the given status.
|
protected Response |
HttpClientInboundWay.createResponse(Status status) |
Response |
ServerOutboundWay.getActualMessage() |
Response |
Way.getMessage()
Returns the current message processed.
|
Modifier and Type | Method and Description |
---|---|
Queue<Response> |
HttpServerOutboundWay.getMessages()
Returns the queue of messages.
|
Queue<Response> |
HttpClientInboundWay.getMessages()
Returns the queue of messages.
|
Queue<Response> |
HttpServerInboundWay.getMessages()
Returns the queue of messages.
|
Queue<Response> |
HttpClientOutboundWay.getMessages()
Returns the queue of messages.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ClientInboundWay.copyResponseTransportHeaders(Series<Header> headers,
Response response)
Copies headers into a response.
|
abstract void |
OutboundWay.handle(Response response)
Add a message to the outbound way.
|
void |
HttpServerOutboundWay.handle(Response response) |
void |
HttpClientOutboundWay.handle(Response response) |
protected void |
ClientInboundWay.onReceived(Response message) |
protected abstract void |
InboundWay.onReceived(Response message)
Call back invoked when the message is received.
|
protected void |
HttpServerInboundWay.onReceived(Response message) |
protected void |
ServerInboundWay.onReceived(Response message)
Call back invoked when the message is received.
|
protected void |
Way.setMessage(Response message)
Sets the current message processed.
|
Modifier and Type | Method and Description |
---|---|
Response |
Service.getLatestResponse()
Returns the response to the latest request.
|
Modifier and Type | Method and Description |
---|---|
void |
Service.setLatestResponse(Response latestResponse)
Sets the response to the latest request.
|
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.HttpServletResponse |
ServletUtils.getResponse(Response response)
Returns the Servlet response that was used to generate the given Restlet
response.
|
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) |
void |
ServletCall.sendResponse(Response response)
Sends the response back to the client.
|
Modifier and Type | Class and Description |
---|---|
class |
SipResponse
Deprecated.
Will be removed to focus on Web APIs.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
SipClientResource.createResponse(Request request)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
SipServerResource.init(Context context,
Request request,
Response response)
Deprecated.
|
void |
SipClientResource.setResponse(Response response)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
SipServerInboundWay.createResponse(Request request)
Deprecated.
|
protected Response |
SipClientInboundWay.createResponse(Status status)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
SipServerHelper.canHandle(Connection<Server> connection,
Response response)
Deprecated.
|
void |
SipInboundRequest.commit(Response response)
Deprecated.
|
protected void |
SipClientInboundWay.copyResponseTransportHeaders(Series<Header> headers,
Response response)
Deprecated.
|
Request |
SipClientHelper.getRequest(Response response)
Deprecated.
|
void |
SipServerOutboundWay.handle(Response response)
Deprecated.
|
void |
SipClientOutboundWay.handle(Response response)
Deprecated.
|
protected void |
SipClientInboundWay.onReceived(Response message)
Deprecated.
|
protected void |
SipClientHelper.unblock(Response response)
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.
|
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.
|
void |
XdbServletCall.sendResponse(Response response)
Deprecated.
Sends the response back to the client.
|
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 |
---|---|
protected Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request.
|
Response |
Resource.getResponse()
Returns the handled response.
|
Response |
ClientResource.handleOutbound(Request request)
Handles the outbound call by invoking the next handler.
|
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. |
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.
|
Representation |
ClientResource.handleInbound(Response response)
Handles the inbound call.
|
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.setResponse(Response response)
Sets the handled response.
|
Constructor and Description |
---|
ClientResource(Context context,
Request request,
Response response)
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 |
Extractor.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 |
Validator.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 |
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 |
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.
|
void |
Redirector.handle(Request request,
Response response)
Handles a call by redirecting using the selected redirection mode.
|
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.
|
float |
TemplateRoute.score(Request request,
Response response)
Returns the score for a given call (between 0 and 1.0).
|
abstract float |
Route.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 abstract boolean |
Authenticator.authenticate(Request request,
Response response)
Attempts to authenticate the subject sending the request.
|
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 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 |
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.
|
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 |
ConfidentialAuthorizer.authorize(Request request,
Response response)
Authorizes the request only if its method is one of the authorized
methods.
|
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) |
void |
ChallengeAuthenticator.challenge(Response response,
boolean stale)
Challenges the client by adding a challenge request to the response and
by setting the status to
Status.CLIENT_ERROR_UNAUTHORIZED . |
protected User |
SecretVerifier.createUser(String identifier,
Request request,
Response response)
Called back to create a new user when valid credentials are provided.
|
void |
ChallengeAuthenticator.forbid(Response response)
Rejects the call due to a failed authentication or authorization.
|
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 |
---|---|
protected String |
LogService.getDefaultResponseLogMessage(Response response,
int duration)
Format a log entry using the default IIS log format.
|
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Deprecated.
|
String |
LogService.getResponseLogMessage(Response response,
int duration)
Format an access log entry.
|
Status |
StatusService.getStatus(Throwable throwable,
Request request,
Response response)
Deprecated.
Use
StatusService.toStatus(Throwable, Request, Response) instead. |
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 |
WrapperResponse
Request wrapper.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
WrapperResponse.getWrappedResponse()
Returns the wrapped response.
|
Modifier and Type | Method and Description |
---|---|
void |
WrapperRequest.commit(Response response) |
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) |
Constructor and Description |
---|
WrapperResponse(Response wrappedResponse)
Constructor.
|
Copyright © 2005–2018. All rights reserved.