Uses of Class
org.restlet.Response
-
Packages that use Response Package Description 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 Modifier and Type Method Description static ResponseResponse. getCurrent()Returns the response associated to the current thread.ResponseRestlet. handle(Request request)Handles a call.Methods in org.restlet with parameters of type Response Modifier and Type Method Description voidRequest. 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.voidApplication. handle(Request request, Response response)voidClient. handle(Request request, Response response)voidComponent. handle(Request request, Response response)Returns a task service to run concurrent tasks.voidRestlet. handle(Request request, Response response)Handles a call.voidRestlet. handle(Request request, Response response, Uniform onResponseCallback)Handles a call.voidServer. handle(Request request, Response response)voidUniform. handle(Request request, Response response)Handles a uniform call.static voidResponse. 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 Constructor Description ChallengeResponse(ChallengeRequest challengeRequest, Response response, java.lang.String identifier, char[] secret)Constructor.ChallengeResponse(ChallengeRequest challengeRequest, Response response, java.lang.String identifier, char[] secret, java.lang.String secretAlgorithm)Constructor.ChallengeResponse(ChallengeRequest challengeRequest, Response response, java.lang.String identifier, java.lang.String secret)Constructor. -
Uses of Response in org.restlet.resource
Methods in org.restlet.resource that return Response Modifier and Type Method Description protected ResponseClientResource. createResponse(Request request)Creates a new response for the given request.ResponseResource. getResponse()Returns the handled response.ResponseResourceException. getResponse()Returns the response associated to this exception.ResponseClientResource. handleOutbound(Request request)Handles the outbound call by invoking the next handler.Methods in org.restlet.resource with parameters of type Response Modifier and Type Method Description ServerResourceFinder. create(java.lang.Class<? extends ServerResource> targetClass, Request request, Response response)Creates a new instance of a givenServerResourcesubclass.ServerResourceFinder. create(Request request, Response response)Creates a new instance of theServerResourcesubclass designated by the "targetClass" property.voidClientResource. doError(Status errorStatus, Request request, Response response)By default, it throws a new resource exception.voidClientResource. doError(Request request, Response response)By default, it throws a new resource exception.ServerResourceFinder. find(Request request, Response response)Finds the targetServerResourceif available.protected voidClientResource. handle(Request request, Response response, java.util.List<Reference> references, int retryAttempt, Uniform next)Handle the call and follow redirection for safe methods.voidDirectory. handle(Request request, Response response)voidFinder. handle(Request request, Response response)Handles a call.RepresentationClientResource. handleInbound(Response response)Handles the inbound call.voidResource. init(Context context, Request request, Response response)Initialization method setting the environment of the current resource instance.protected voidClientResource. redirect(Request request, Response response, java.util.List<Reference> references, int retryAttempt, Uniform next)Effectively redirects a client call.protected voidClientResource. retry(Request request, Response response, java.util.List<Reference> references, int retryAttempt, Uniform next)Effectively retries a failed client call.voidResource. setResponse(Response response)Sets the handled response.Constructors in org.restlet.resource with parameters of type Response Constructor Description ClientResource(Context context, Request request, Response response)Constructor.ClientResource(Request request, Response response)Constructor.ResourceException(Status status, java.lang.Throwable cause, Request request, Response response)Constructor.ResourceException(Status status, Request request, Response response)Constructor. -
Uses of Response in org.restlet.routing
Methods in org.restlet.routing with parameters of type Response Modifier and Type Method Description protected voidFilter. afterHandle(Request request, Response response)Allows filtering after processing by the next Restlet.protected intExtractor. beforeHandle(Request request, Response response)Allows filtering before its handling by the target Restlet.protected intFilter. beforeHandle(Request request, Response response)Allows filtering before processing by the next Restlet.protected intTemplateRoute. beforeHandle(Request request, Response response)Allows filtering before its handling by the target Restlet.protected intValidator. beforeHandle(Request request, Response response)Allows filtering before its handling by the target Restlet.protected intFilter. doHandle(Request request, Response response)Handles the call by distributing it to the next Restlet.protected voidRouter. doHandle(Restlet next, Request request, Response response)java.lang.StringTemplate. format(Request request, Response response)Creates a formatted string based on the given request and response.protected RouteRouter. getCustom(Request request, Response response)Returns the matched route according to a custom algorithm.RestletRouter. getNext(Request request, Response response)Returns the next Restlet if available.protected ReferenceRedirector. getTargetRef(Request request, Response response)Returns the target reference to redirect to by automatically resolving URI template variables found using theTemplateclass using the request and response as data models.voidFilter. 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.voidRedirector. handle(Request request, Response response)Handles a call by redirecting using the selected redirection mode.voidRouter. handle(Request request, Response response)Handles a call by invoking the next Restlet if it is available.protected voidRedirector. inboundServerRedirect(Reference targetRef, Request request, Response response)Redirects a given call to a target reference.protected voidRedirector. outboundServerRedirect(Reference targetRef, Request request, Response response)Redirects a given call to a target reference.protected voidRedirector. rewrite(Response initialResponse)Optionally updates the response sent in theRedirector.MODE_SERVER_INBOUNDandRedirector.MODE_SERVER_OUTBOUNDmodes.voidRedirector. rewriteLocation(Request request, Response response)Rewrite the location of the response, and the Location of the entity, if any.abstract floatRoute. score(Request request, Response response)Returns the score for a given call (between 0 and 1.0).floatTemplateRoute. score(Request request, Response response)Returns the score for a given call (between 0 and 1.0).protected voidRedirector. 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 Modifier and Type Method Description protected abstract booleanAuthenticator. authenticate(Request request, Response response)Attempts to authenticate the subject sending the request.protected booleanCertificateAuthenticator. authenticate(Request request, Response response)Authenticates the call using the X.509 client certificate.protected booleanChallengeAuthenticator. authenticate(Request request, Response response)Authenticates the call, relying on the verifier to check the credentials provided (in general an identifier + secret couple).protected intAuthenticator. authenticated(Request request, Response response)Invoked upon successful authentication.protected abstract booleanAuthorizer. authorize(Request request, Response response)Attempts to authorize the request.booleanConfidentialAuthorizer. authorize(Request request, Response response)Authorizes the request only if its method is one of the authorized methods.booleanMethodAuthorizer. authorize(Request request, Response response)Authorizes the request only if its method is one of the authorized methods.booleanRoleAuthorizer. 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 intAuthorizer. authorized(Request request, Response response)Invoked upon successful authorization.protected intAuthenticator. beforeHandle(Request request, Response response)Handles the authentication by first invoking theAuthenticator.authenticate(Request, Response)method, only ifAuthenticator.isMultiAuthenticating()returns true and ifClientInfo.isAuthenticated()returns false.protected intAuthorizer. beforeHandle(Request request, Response response)voidChallengeAuthenticator. challenge(Response response, boolean stale)Challenges the client by adding a challenge request to the response and by setting the status toStatus.CLIENT_ERROR_UNAUTHORIZED.protected UserSecretVerifier. createUser(java.lang.String identifier, Request request, Response response)Called back to create a new user when valid credentials are provided.voidChallengeAuthenticator. forbid(Response response)Rejects the call due to a failed authentication or authorization.protected java.lang.StringSecretVerifier. 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 intAuthenticator. unauthenticated(Request request, Response response)Invoked upon failed authentication.protected intAuthorizer. unauthorized(Request request, Response response)Invoked upon failed authorization.intSecretVerifier. verify(Request request, Response response)Verifies that the proposed secret is correct for the specified request.intVerifier. 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 Modifier and Type Method Description protected java.lang.StringLogService. getDefaultResponseLogMessage(Response response, int duration)Format a log entry using the default IIS log format.RepresentationStatusService. getRepresentation(Status status, Request request, Response response)Deprecated.java.lang.StringLogService. getResponseLogMessage(Response response, int duration)Format an access log entry.StatusStatusService. getStatus(java.lang.Throwable throwable, Request request, Response response)Deprecated.UseStatusService.toStatus(Throwable, Request, Response)instead.RepresentationStatusService. toRepresentation(Status status, Request request, Response response)Returns a representation for the given status.StatusStatusService. toStatus(java.lang.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 Modifier and Type Class Description classWrapperResponseRequest wrapper.Methods in org.restlet.util that return Response Modifier and Type Method Description protected ResponseWrapperResponse. getWrappedResponse()Returns the wrapped response.Methods in org.restlet.util with parameters of type Response Modifier and Type Method Description voidWrapperRequest. commit(Response response)static Resolver<?>Resolver. createResolver(Request request, Response response)Creates a resolver that is based on a call (request, response couple).RouteRouteList. getBest(Request request, Response response, float requiredScore)Returns the best route match for a given call.RouteRouteList. getFirst(Request request, Response response, float requiredScore)Returns the first route match for a given call.RouteRouteList. getLast(Request request, Response response, float requiredScore)Returns the last route match for a given call.RouteRouteList. getNext(Request request, Response response, float requiredScore)Returns a next route match in a round robin mode for a given call.RouteRouteList. getRandom(Request request, Response response, float requiredScore)Returns a random route match for a given call.voidWrapperRestlet. handle(Request request, Response response)Constructors in org.restlet.util with parameters of type Response Constructor Description WrapperResponse(Response wrappedResponse)Constructor.
-