| Package | Description |
|---|---|
| ratpack.exec |
The execution management.
|
| ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
| ratpack.groovy.test.handling | |
| ratpack.handling |
The handling of application requests.
|
| ratpack.http |
The HTTP protocol.
|
| ratpack.jackson |
Integration with the Jackson JSON marshalling library.
|
| 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.render |
The renderer framework provides a pluggable mechanism for serializing objects to the response.
|
| ratpack.server |
Objects used to start a ratpack application.
|
| ratpack.test | |
| 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 |
|---|---|
ExecStarter |
ExecStarter.register(Action<? super RegistrySpec> registry) |
| Modifier and Type | Method and Description |
|---|---|
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry). |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> chainAction)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...). |
default GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Closure<?> handler) |
| Modifier and Type | Method and Description |
|---|---|
GroovyRequestFixture |
GroovyRequestFixture.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|
| Modifier and Type | Method and Description |
|---|---|
Chain |
Chain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry). |
Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...). |
default Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Request
A request to be handled.
|
| Modifier and Type | Method and Description |
|---|---|
static RegistrySpec |
Jackson.Init.register(RegistrySpec registrySpec,
ObjectMapper objectMapper,
ObjectWriter objectWriter)
Registers the renderer and parsers with the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
static RegistrySpec |
Jackson.Init.register(RegistrySpec registrySpec,
ObjectMapper objectMapper,
ObjectWriter objectWriter)
Registers the renderer and parsers with the given registry.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MutableRegistry
A
Registry that is also mutable. |
interface |
RegistryBuilder
A builder of
registries. |
| Modifier and Type | Method and Description |
|---|---|
default <O> RegistrySpec |
RegistrySpec.add(Class<? super O> type,
O object)
Adds a registry entry that is available by the given type.
|
default RegistrySpec |
RegistrySpec.add(Object object)
Adds a registry entry.
|
default <O> RegistrySpec |
RegistrySpec.add(TypeToken<? super O> type,
O object)
Adds a registry entry that is available by the given type.
|
default <O> RegistrySpec |
RegistrySpec.addLazy(Class<O> type,
Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.
|
<O> RegistrySpec |
RegistrySpec.addLazy(TypeToken<O> type,
Supplier<? extends O> supplier)
Adds a lazily created entry to the registry.
|
default RegistrySpec |
RegistrySpec.with(Action<? super RegistrySpec> action)
Executes the given action with
this. |
| Modifier and Type | Method and Description |
|---|---|
static Registry |
Registries.registry(Action<? super RegistrySpec> action)
Builds a registry from the given action.
|
default RegistryBuilder |
RegistryBuilder.with(Action<? super RegistrySpec> action) |
default RegistrySpec |
RegistrySpec.with(Action<? super RegistrySpec> action)
Executes the given action with
this. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CommandDelegate
The delegate object for commands
|
| Modifier and Type | Method and Description |
|---|---|
default Action<RegistrySpec> |
RenderableDecorator.register()
A registration action, typically used with
with(Action). |
default Action<RegistrySpec> |
Renderer.register()
An action that registers this renderer with a registry.
|
| Modifier and Type | Method and Description |
|---|---|
RatpackServer.Definition.Builder |
RatpackServer.Definition.Builder.registryOf(Action<? super RegistrySpec> action)
Specifies the user registry.
|
| Modifier and Type | Method and Description |
|---|---|
static CloseableApplicationUnderTest |
ApplicationUnderTest.of(Class<?> mainClass,
Action<? super RegistrySpec> action) |
| Modifier and Type | Method and Description |
|---|---|
RegistrySpec |
RequestFixture.getRegistry()
A specification of the context registry.
|
| Modifier and Type | Method and Description |
|---|---|
RequestFixture |
RequestFixture.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|