|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Response | |
---|---|
org.restlet | Core classes of the API. |
org.restlet.data | Information exchanged by components. |
org.restlet.resource | Client and server resource classes. |
org.restlet.routing | Classes related to call routing. |
org.restlet.security | Classes related to security. |
org.restlet.service | Services used by applications and components. |
org.restlet.util | Various utility classes. |
Uses of Response in org.restlet |
---|
Methods in org.restlet that return Response | |
---|---|
static Response |
Response.getCurrent()
Returns the response associated to the current thread. |
Response |
Client.handle(Request request)
Handles a call. |
Methods in org.restlet with parameters of type Response | |
---|---|
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 |
Client.handle(Request request,
Response response)
|
void |
Server.handle(Request request,
Response response)
|
void |
Uniform.handle(Request request,
Response response)
Handles a uniform call. |
void |
Application.handle(Request request,
Response response)
|
void |
Restlet.handle(Request request,
Response response)
Handles a call. |
void |
Component.handle(Request request,
Response response)
|
void |
Client.handle(Request request,
Response response,
Uniform onResponseCallback)
Handles a call. |
static void |
Response.setCurrent(Response response)
Sets the response associated with the current thread. |
Uses of Response in org.restlet.data |
---|
Constructors in org.restlet.data with parameters of type Response | |
---|---|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
char[] baseSecret)
Constructor. |
|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
char[] baseSecret,
String baseSecretAlgorithm)
Constructor. |
|
ChallengeResponse(ChallengeRequest challengeRequest,
Response response,
String identifier,
String baseSecret)
Constructor. |
Uses of Response in org.restlet.resource |
---|
Methods in org.restlet.resource that return Response | |
---|---|
protected Response |
ClientResource.createResponse(Request request)
Creates a new response for the given request. |
Response |
UniformResource.getResponse()
Returns the handled response. |
Response |
Handler.getResponse()
Deprecated. Returns the response. |
Methods in org.restlet.resource with parameters of type Response | |
---|---|
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 Handler |
Finder.createTarget(Class<? extends Handler> targetClass,
Request request,
Response response)
Deprecated. Use Finder.create(Request, Response) instead. |
protected Handler |
Finder.createTarget(Request request,
Response response)
Deprecated. Use Finder.create(Request, Response) instead. |
ServerResource |
Finder.find(Request request,
Response response)
Finds the target ServerResource if available. |
Handler |
Finder.findTarget(Request request,
Response response)
Deprecated. Use Finder.find(Request, Response) instead. |
void |
Directory.handle(Request request,
Response response)
|
void |
Finder.handle(Request request,
Response response)
Handles a call. |
void |
Resource.init(Context context,
Request request,
Response response)
Deprecated. Initialize the resource with its context. |
void |
UniformResource.init(Context context,
Request request,
Response response)
Initialization method setting the environment of the current resource instance. |
void |
Handler.init(Context context,
Request request,
Response response)
Deprecated. Initialize the resource with its context. |
void |
UniformResource.setResponse(Response response)
Sets the handled response. |
void |
Handler.setResponse(Response response)
Deprecated. Sets the response to update. |
Constructors in org.restlet.resource with parameters of type Response | |
---|---|
ClientResource(Context context,
Request request,
Response response)
Constructor. |
|
ClientResource(Request request,
Response response)
Constructor. |
|
Handler(Context context,
Request request,
Response response)
Deprecated. Normal constructor. |
|
Resource(Context context,
Request request,
Response response)
Deprecated. Normal constructor. |
Uses of Response in org.restlet.routing |
---|
Methods in org.restlet.routing with parameters of type Response | |
---|---|
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 |
Route.beforeHandle(Request request,
Response response)
Deprecated. 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)
Effectively handles the call using the selected next Restlet ,
typically the selected Route . |
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. |
void |
Router.handle(Request request,
Response response)
Handles a call by invoking the next Restlet if it is available. |
void |
Redirector.handle(Request request,
Response response)
Handles a call by redirecting using the selected redirection mode. |
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. |
protected void |
Redirector.redirectDispatcher(Reference targetRef,
Request request,
Response response)
Deprecated. Use Redirector.outboundServerRedirect(Reference, Request, Response)
instead. |
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. |
Uses of Response in org.restlet.security |
---|
Methods in org.restlet.security with parameters of type Response | |
---|---|
void |
Guard.accept(Request request,
Response response)
Deprecated. Accepts the call. |
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 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. |
protected abstract boolean |
Authorizer.authorize(Request request,
Response response)
Attempts to authorize the request. |
boolean |
MethodAuthorizer.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. |
protected int |
Authorizer.beforeHandle(Request request,
Response response)
|
void |
Guard.challenge(Response response,
boolean stale)
Deprecated. Challenges the client by adding a challenge request to the response and by setting the status to CLIENT_ERROR_UNAUTHORIZED. |
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 . |
int |
Guard.doHandle(Request request,
Response response)
Deprecated. Handles the call by distributing it to the next Restlet. |
void |
Guard.forbid(Response response)
Deprecated. Rejects the call due to a failed authentication or authorization. |
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 |
SecretVerifier.verify(Request request,
Response response)
Verifies that the proposed secret is correct for the specified request. |
int |
Verifier.verify(Request request,
Response response)
Attempts to verify the credentials provided by the client user sending the request. |
Uses of Response in org.restlet.service |
---|
Methods in org.restlet.service with parameters of type Response | |
---|---|
Representation |
StatusService.getRepresentation(Status status,
Request request,
Response response)
Returns a representation for the given status. In order to customize the default representation, this method can be overridden. |
Status |
StatusService.getStatus(Throwable throwable,
Request request,
Response response)
Returns a status for a given exception or error. |
Uses of Response in org.restlet.util |
---|
Subclasses of Response in org.restlet.util | |
---|---|
class |
WrapperResponse
Request wrapper. |
Methods in org.restlet.util that return Response | |
---|---|
protected Response |
WrapperResponse.getWrappedResponse()
Returns the wrapped response. |
Methods in org.restlet.util with parameters of type Response | |
---|---|
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)
|
Constructors in org.restlet.util with parameters of type Response | |
---|---|
WrapperResponse(Response wrappedResponse)
Constructor. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |