Package ratpack.core.handling
The handling of application requests.
-
Interface Summary Interface Description ByContentSpec A specification of how to respond to a request, based on the requested content type (i.e.ByMethodSpec A specification of how to respond to a request, based on the requested method.Chain A chain is a write only builder for composing handlers.Context The context of an individualHandler
invocation.Handler A handler participates in the processing of a request/response pair, operating on aContext
.HandlerDecorator Decorates a handler, effectively wrapping it.Redirector Interprets objects as aLocation
header value, and issues the redirect response.RequestId An opaque identifier for the request.RequestId.Generator Generates, or assigns, an ID for requests.RequestLogger A handler that logs information about the request.RequestOutcome The outcome of processing a request.UserId An opaque identifier for the “user” that initiated the request. -
Class Summary Class Description Handlers Factory methods for handler decorations.InjectionHandler A super class that removes the boiler plate of retrieving objects from the context registry by injecting them based on a method signature.ResponseTimer Ahandler
, that adds a "X-Response-Time" header to all requests indicating how long it took to start sending a response in milliseconds. -
Exception Summary Exception Description InjectionHandler.NoSuitableHandleMethodException Exception thrown if the subclass doesn't provide a valid handle method.