Package | Description |
---|---|
org.restlet.client |
Core classes of the API.
|
org.restlet.client.resource |
Client and server resource classes.
|
org.restlet.client.util |
Various utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
Client
Connector acting as a generic client.
|
class |
Connector
Restlet enabling communication between Components.
|
class |
Restlet
Uniform class that provides a context and life cycle support.
|
Modifier and Type | Method and Description |
---|---|
Uniform |
Message.getOnError()
Returns the callback invoked when an error occurs when sending the
message.
|
Uniform |
Request.getOnResponse()
Returns the callback invoked on response reception.
|
Uniform |
Message.getOnSent()
Returns the callback invoked after sending the message.
|
Modifier and Type | Method and Description |
---|---|
void |
Restlet.handle(Request request,
Response response,
Uniform onResponseCallback)
Handles a call.
|
void |
Restlet.handle(Request request,
Uniform onReceivedCallback)
Handles a call.
|
void |
Message.setOnError(Uniform onError)
Sets the callback invoked when an error occurs when sending the message.
|
void |
Request.setOnResponse(Uniform onResponseCallback)
Sets the callback invoked on response reception.
|
void |
Message.setOnSent(Uniform onSentCallback)
Sets the callback invoked after sending the message.
|
Modifier and Type | Method and Description |
---|---|
protected Uniform |
ClientResource.createNext()
Creates a next Restlet is no one is set.
|
Uniform |
ClientResource.getNext()
Returns the next Restlet.
|
Uniform |
ClientResource.getOnResponse()
Returns the callback invoked on response reception.
|
Uniform |
ClientResource.getOnSent()
Returns the callback invoked after sending the request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ClientResource.handle(Request request,
Response response,
java.util.List<Reference> references,
int retryAttempt,
Uniform next)
Handle the call and follow redirection for safe methods.
|
protected void |
ClientResource.redirect(Request request,
Response response,
java.util.List<Reference> references,
int retryAttempt,
Uniform next)
Effectively redirects a client call.
|
protected void |
ClientResource.retry(Request request,
Response response,
java.util.List<Reference> references,
int retryAttempt,
Uniform next)
Effectively retries a failed client call.
|
void |
ClientResource.setNext(Uniform next)
Sets the next handler such as a Restlet or a Filter.
|
void |
ClientResource.setOnResponse(Uniform onResponseCallback)
Sets the callback invoked on response reception.
|
void |
ClientResource.setOnSent(Uniform onSentCallback)
Sets the callback invoked after sending the request.
|
Modifier and Type | Class and Description |
---|---|
class |
WrapperRestlet
Restlet wrapper.
|
Modifier and Type | Method and Description |
---|---|
Uniform |
WrapperRequest.getOnResponse() |
Modifier and Type | Method and Description |
---|---|
void |
WrapperRequest.setOnResponse(Uniform onResponseCallback) |
Copyright © 2005-2024 Restlet.