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 | Method and Description |
---|---|
Request |
Response.getRequest()
Returns the associated request
|
Modifier and Type | Method and Description |
---|---|
void |
Uniform.handle(Request request,
Response response)
Handles a uniform call.
|
void |
Restlet.handle(Request request,
Response response)
Handles a call.
|
void |
Client.handle(Request request,
Response response) |
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 |
---|---|
Request |
ClientResource.createRequest()
Creates a new request by cloning the one wrapped by this class.
|
Request |
ResourceException.getRequest()
Returns the request associated to this exception.
|
Request |
Resource.getRequest()
Returns the handled request.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request.
|
void |
ClientResource.doError(Request request,
Response response)
By default, it throws a new resource exception.
|
void |
ClientResource.doError(Status errorStatus,
Request request,
Response response)
By default, it throws a new resource exception.
|
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.
|
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,
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 |
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.
|
ResourceException(Status status,
Request request,
Response response)
Constructor.
|
ResourceException(Status status,
java.lang.Throwable cause,
Request request,
Response response)
Constructor.
|
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 |
---|---|
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-2024 Restlet.