Uses of Class
org.restlet.Response
Packages that use Response
Package
Description
Core classes of the Restlet API.
Information exchanged by components.
Implementation of Restlet API.
Adapters between low-level HTTP calls and high-level Restlet Request and
Response objects.
Supports Restlet applications.
Supports Restlet components.
Integration with Java URLConnection class.
Supports HTTP header parsing and formatting.
Supports local connectors and resources.
Supports the log service.
Supports security.
General utilities.
Client and server resource classes.
Classes related to call routing.
Classes related to security.
Services used by applications and components.
Various utility classes.
-
Uses of Response in org.restlet
Methods in org.restlet that return ResponseModifier and TypeMethodDescriptionstatic ResponseResponse.getCurrent()Returns the response associated to the current thread.final ResponseHandles a call.Methods in org.restlet with parameters of type ResponseModifier and TypeMethodDescriptionvoidAsks the server connector to immediately commit the given response associated to this request, making it ready to be sent back to the client.voidvoidvoidvoidHandles a call.final voidHandles a call.voidvoidHandles 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 ResponseModifierConstructorDescriptionChallengeResponse(ChallengeRequest challengeRequest, Response response, String identifier, char[] secret) Constructor.ChallengeResponse(ChallengeRequest challengeRequest, Response response, String identifier, char[] secret, String secretAlgorithm) Constructor.ChallengeResponse(ChallengeRequest challengeRequest, Response response, String identifier, String secret) Constructor. -
Uses of Response in org.restlet.engine
Methods in org.restlet.engine with parameters of type Response -
Uses of Response in org.restlet.engine.adapter
Subclasses of Response in org.restlet.engine.adapterMethods in org.restlet.engine.adapter with parameters of type ResponseModifier and TypeMethodDescriptionstatic voidAdds a new header to the given request.voidClientAdapter.commit(ClientCall httpCall, Request request, Response response) Commits the changes to a handled HTTP client call back into the original uniform call.ClientCall.getResponseEntity(Response response) Returns the response entity if available.voidprotected voidClientAdapter.readResponseHeaders(ClientCall httpCall, Response response) Reads the response headers of a handled HTTP client call to update the original uniform call.voidClientCall.sendRequest(Request request, Response response, Uniform callback) Sends the request to the client.voidServerCall.sendResponse(Response response) Sends the response back to the client.booleanServerCall.shouldResponseBeChunked(Response response) Indicates if the response should be chunked because its length is unknown.voidClientAdapter.updateResponse(Response response, Status status, ClientCall httpCall) Updates the response with information from the lower-level HTTP client call.protected voidServerCall.writeResponseHead(Response response) Writes the response status line and headers.protected voidServerCall.writeResponseHead(Response response, OutputStream headStream) Writes the response head to the given output stream. -
Uses of Response in org.restlet.engine.application
Methods in org.restlet.engine.application with parameters of type ResponseModifier and TypeMethodDescriptionvoidCorsResponseHelper.addCorsResponseHeaders(Request request, Response response) Adds CORS headers to the given response.protected voidCorsFilter.afterHandle(Request request, Response response) Add CORS headers to responsevoidDecoder.afterHandle(Request request, Response response) Allows filtering after its handling by the target Restlet.voidEncoder.afterHandle(Request request, Response response) Allows filtering after its handling by the target Restlet.protected voidRangeFilter.afterHandle(Request request, Response response) voidStatusFilter.afterHandle(Request request, Response response) Allows filtering after its handling by the target Restlet.protected intCorsFilter.beforeHandle(Request request, Response response) Skip the call to the server resource if theCorsFilter.skippingResourceForCorsOptionsis true and if the current request use the OPTIONS method and is a CORS request.intDecoder.beforeHandle(Request request, Response response) Allows filtering before its handling by the target Restlet.intEncoder.beforeHandle(Request request, Response response) Allows filtering before its handling by the target Restlet.intTunnelFilter.beforeHandle(Request request, Response response) protected intHandles the call by distributing it to the next Restlet.voidIn addition to the default behavior, it saves the current application instance into the current thread. -
Uses of Response in org.restlet.engine.component
Methods in org.restlet.engine.component with parameters of type ResponseModifier and TypeMethodDescriptionintComponentServerDispatcher.beforeHandle(Request request, Response response) protected intHostRoute.beforeHandle(Request request, Response response) Allows filtering before processing by the next Restlet.protected intprotected intfloatReturns the score for a given call (between 0 and 1.0).floatReturns the score for a given call (between 0 and 1.0). -
Uses of Response in org.restlet.engine.connector
Methods in org.restlet.engine.connector with parameters of type ResponseModifier and TypeMethodDescriptionvoidDeprecated.voidHandles a call by invoking the helped Server'sServer.handle(Request, Response)method.voidHttpUrlConnectionCall.sendRequest(Request request, Response response, Uniform callback) Deprecated.voidHttpExchangeCall.writeResponseHead(Response restletResponse) Deprecated. -
Uses of Response in org.restlet.engine.header
Methods in org.restlet.engine.header with parameters of type ResponseModifier and TypeMethodDescriptionstatic voidHeaderUtils.addResponseHeaders(Response response, Series<Header> headers) static voidHeaderUtils.copyResponseTransportHeaders(Series<Header> headers, Response response) Copies headers into a response. -
Uses of Response in org.restlet.engine.local
Methods in org.restlet.engine.local that return ResponseModifier and TypeMethodDescriptionprotected ResponseDirectoryServerResource.getRepresentation(String resourceUri, MediaType acceptedMediaType) Returns a representation of the resource at the target URI.Methods in org.restlet.engine.local with parameters of type ResponseModifier and TypeMethodDescriptionfinal voidHandles a call.voidHandles a call.protected voidClapClientHelper.handleClassLoader(Request request, Response response, ClassLoader classLoader) Handles a call with a given class loader.protected voidEntityClientHelper.handleEntityGet(Request request, Response response, Entity entity) Handles a GET call.protected voidFileClientHelper.handleFile(Request request, Response response, String decodedPath) protected voidFileClientHelper.handleFileDelete(Response response, File file) Handles a DELETE call for the FILE protocol.protected voidFileClientHelper.handleFilePut(Request request, Response response, String path, File file) Handles a PUT call for the FILE protocol.protected voidZipClientHelper.handleGet(Request request, Response response, File file, String entryName, MetadataService metadataService) Handles a GET call.protected voidClapClientHelper.handleLocal(Request request, Response response, String decodedPath) protected voidEntityClientHelper.handleLocal(Request request, Response response, String decodedPath) protected voidFileClientHelper.handleLocal(Request request, Response response, String decodedPath) protected abstract voidLocalClientHelper.handleLocal(Request request, Response response, String decodedPath) Handles a local call.protected voidZipClientHelper.handleLocal(Request request, Response response, String decodedPath) Handles a call for a local entity.protected voidHandles a PUT call. -
Uses of Response in org.restlet.engine.log
Methods in org.restlet.engine.log with parameters of type ResponseModifier and TypeMethodDescriptionprotected voidLogFilter.afterHandle(Request request, Response response) Allows filtering after processing by the next Restlet.protected intLogFilter.beforeHandle(Request request, Response response) Allows filtering before processing by the next Restlet. -
Uses of Response in org.restlet.engine.security
Methods in org.restlet.engine.security with parameters of type ResponseModifier and TypeMethodDescriptionvoidAuthenticatorHelper.formatRequest(ChallengeWriter cw, ChallengeRequest challenge, Response response, Series<Header> httpHeaders) Formats a challenge request as raw credentials.static StringAuthenticatorUtils.formatRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders) Formats a challenge request as an HTTP header value.voidHttpBasicHelper.formatRequest(ChallengeWriter cw, ChallengeRequest challenge, Response response, Series<Header> httpHeaders) voidAuthenticatorHelper.parseRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders) Parses an authenticate header into a challenge request.static List<ChallengeRequest>AuthenticatorUtils.parseRequest(Response response, String header, Series<Header> httpHeaders) Parses an WWW-Authenticate header into a list of challenge request.voidHttpBasicHelper.parseRequest(ChallengeRequest challenge, Response response, Series<Header> httpHeaders) static voidAuthenticatorUtils.update(ChallengeResponse challengeResponse, Request request, Response response) Updates aChallengeResponseobject according to given request and response. -
Uses of Response in org.restlet.engine.util
Methods in org.restlet.engine.util with parameters of type ResponseModifier and TypeMethodDescriptionprotected voidTemplateDispatcher.afterHandle(Request request, Response response) If the response entity comes back with no identifier, automatically set the request's resource reference's identifier.intTemplateDispatcher.beforeHandle(Request request, Response response) Handles the call after resolving any URI template on the request's target resource reference.intTransmits the call to the parent component except if the call is internal as denoted by theProtocol.RIAPprotocol and targets this child application.Constructors in org.restlet.engine.util with parameters of type Response -
Uses of Response in org.restlet.resource
Methods in org.restlet.resource that return ResponseModifier and TypeMethodDescriptionprotected ResponseClientResource.createResponse(Request request) Creates a new response for the given request.Resource.getResponse()Returns the handled response.ResourceException.getResponse()Returns the response associated to this exception.ClientResource.handleOutbound(Request request) Handles the outbound call by invoking the next handler.Methods in org.restlet.resource with parameters of type ResponseModifier and TypeMethodDescriptionFinder.create(Class<? extends ServerResource> targetClass, Request request, Response response) Creates a new instance of a givenServerResourcesubclass.Creates a new instance of theServerResourcesubclass designated by the "targetClass" property.voidBy default, it throws a new resource exception.voidBy default, it throws a new resource exception.Finds the targetServerResourceif available.protected voidClientResource.handle(Request request, Response response, List<Reference> references, int retryAttempt, Uniform next) Handle the call and follow redirection for safe methods.voidvoidHandles a call.ClientResource.handleInbound(Response response) Handles the inbound call.voidInitialization method setting the environment of the current resource instance.protected voidClientResource.redirect(Request request, Response response, List<Reference> references, int retryAttempt, Uniform next) Effectively redirects a client call.protected voidClientResource.retry(Request request, Response response, 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 ResponseModifierConstructorDescriptionClientResource(Context context, Request request, Response response) Constructor.ClientResource(Request request, Response response) Constructor.ResourceException(Status status, 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 ResponseModifier and TypeMethodDescriptionprotected 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 intHandles the call by distributing it to the next Restlet.protected voidCreates a formatted string based on the given request and response.protected RouteReturns the matched route according to a custom algorithm.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.final voidHandles a call by first invoking the beforeHandle() method for pre-filtering, then distributing the call to the next Restlet via the doHandle() method.voidHandles a call by redirecting using the selected redirection mode.voidHandles 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 voidOptionally 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 floatReturns the score for a given call (between 0 and 1.0).floatReturns 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 ResponseModifier and TypeMethodDescriptionprotected 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 booleanAttempts to authorize the request.booleanAuthorizes the request only if its method is one of the authorized methods.booleanAuthorizes the request only if its method is one of the authorized methods.booleanAuthorizes 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) voidChallenges the client by adding a challenge request to the response and by setting the status toStatus.CLIENT_ERROR_UNAUTHORIZED.protected UserSecretVerifier.createUser(String identifier, Request request, Response response) Called back to create a new user when valid credentials are provided.voidRejects the call due to a failed authentication or authorization.protected StringSecretVerifier.getIdentifier(Request request, Response response) Returns the user identifier.protected char[]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.intVerifies that the proposed secret is correct for the specified request.intAttempts 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 ResponseModifier and TypeMethodDescriptionprotected StringLogService.getDefaultResponseLogMessage(Response response, int duration) Format a log entry using the default IIS log format.LogService.getResponseLogMessage(Response response, int duration) Format an access log entry.StatusService.toRepresentation(Status status, Request request, Response response) Returns a representation for the given status.Returns a status for a given exception or error. -
Uses of Response in org.restlet.util
Subclasses of Response in org.restlet.utilMethods in org.restlet.util that return ResponseModifier and TypeMethodDescriptionprotected ResponseWrapperResponse.getWrappedResponse()Returns the wrapped response.Methods in org.restlet.util with parameters of type ResponseModifier and TypeMethodDescriptionvoidstatic Resolver<?>Resolver.createResolver(Request request, Response response) Creates a resolver that is based on a call (request, response couple).Returns the best route match for a given call.Returns the first route match for a given call.Returns the last route match for a given call.Returns a next route match in a round robin mode for a given call.Returns a random route match for a given call.voidConstructors in org.restlet.util with parameters of type Response