| Package | Description |
|---|---|
| ratpack.exec |
The execution management.
|
| ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
| ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
| ratpack.guice |
Integration with Google Guice.
|
| ratpack.handling |
The handling of application requests.
|
| ratpack.http |
The HTTP protocol.
|
| ratpack.registry |
Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.
|
| ratpack.remote |
Integration with Groovy Remote Control.
|
| ratpack.spring | |
| ratpack.test.handling |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Execution
A logical stream of execution, which is potentially serialized over many threads.
|
| Modifier and Type | Method and Description |
|---|---|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
GroovyContext
Subclass of
Context that adds Groovy friendly variants of methods. |
| Modifier and Type | Method and Description |
|---|---|
GroovyChain |
GroovyChain.register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.
|
GroovyChain |
GroovyChain.register(Registry registry,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with the given registry via
Context.insert(ratpack.registry.Registry, Handler...). |
GroovyChain |
GroovyChain.register(Registry registry,
Closure<?> handlers) |
| Modifier and Type | Method and Description |
|---|---|
static Registry |
Guice.justInTimeRegistry(Injector injector)
|
static Registry |
Guice.registry(Injector injector)
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Context
The context of an individual
Handler invocation. |
| Modifier and Type | Method and Description |
|---|---|
Registry |
Chain.getRegistry()
The registry that backs this chain.
|
| Modifier and Type | Method and Description |
|---|---|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
void |
Context.insert(Registry registry,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.
|
void |
Context.next(Registry registry)
Invokes the next handler, after adding the given registry.
|
Chain |
Chain.register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.
|
static Handler |
Handlers.register(Registry registry)
A handler that simply calls
Context.next(Registry) with the given registry. |
Chain |
Chain.register(Registry registry,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with the given registry via
Context.insert(ratpack.registry.Registry, Handler...). |
static Handler |
Handlers.register(Registry registry,
Handler handler)
A handler that simply calls
Context.insert(Registry, Handler...) with the given registry and handler. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Request
A request to be handled.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableRegistry
A
Registry that is also mutable. |
| Modifier and Type | Method and Description |
|---|---|
static Registry |
Registries.backedRegistry(RegistryBacking registryBacking)
Creates a new registry instance that is backed by a RegistryBacking implementation.
|
Registry |
RegistryBuilder.build()
Builds the registry.
|
default Registry |
RegistryBuilder.build(Registry parent)
Builds a registry containing the entries specified by this builder and the given “parent” registry.
|
static Registry |
Registries.join(Registry parent,
Registry child)
Joins the given registries into a new registry.
|
static <T> Registry |
Registries.just(Class<? super T> publicType,
T implementation)
Creates a single entry registry, using
RegistryBuilder.add(Class, Object). |
static <T> Registry |
Registries.just(Class<T> publicType,
Supplier<? extends T> supplier)
Creates a single lazily created entry registry, using
RegistryBuilder.addLazy(Class, Supplier). |
static Registry |
Registries.just(Object object)
Creates a single entry registry, using
RegistryBuilder.add(Object). |
static Registry |
Registries.registry(Action<? super RegistrySpec> action)
Builds a registry from the given action.
|
| Modifier and Type | Method and Description |
|---|---|
default Registry |
RegistryBuilder.build(Registry parent)
Builds a registry containing the entries specified by this builder and the given “parent” registry.
|
static Registry |
Registries.join(Registry parent,
Registry child)
Joins the given registries into a new registry.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
CommandDelegate
The delegate object for commands
|
| Modifier and Type | Method and Description |
|---|---|
static Registry |
Spring.spring(Class<?> clazz,
String... args)
Creates a registry backed by the given Spring Boot application class.
|
static Registry |
Spring.spring(ListableBeanFactory beanFactory)
Creates a registry backed by the given bean factory.
|
static Registry |
Spring.spring(SpringApplicationBuilder builder,
String... args)
Creates a registry backed by the given Spring Boot application builder.
|
| Modifier and Type | Method and Description |
|---|---|
Registry |
HandlingResult.getRegistry()
The final state of the context registry.
|
Registry |
HandlingResult.getRequestRegistry()
The final state of the request registry.
|