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 |
---|---|
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 |
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.
|
Modifier and Type | Method and Description |
---|---|
protected Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request.
|
Response |
ResourceException.getResponse()
Returns the response associated to this exception.
|
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 |
---|---|
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.
|
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,
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.setResponse(Response response)
Sets the handled response.
|
Constructor and Description |
---|
ClientResource(Context context,
Request request,
Response response)
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 |
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) |
void |
WrapperRestlet.handle(Request request,
Response response) |
Constructor and Description |
---|
WrapperResponse(Response wrappedResponse)
Constructor.
|
Copyright © 2005-2024 Restlet.