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.guice |
Integration with Google Guice.
|
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.exec | |
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 |
---|---|
ExecBuilder |
ExecBuilder.register(Action<? super RegistrySpec> action)
Populates the execution's registry.
|
Modifier and Type | Method and Description |
---|---|
default GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) . |
default 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) |
default 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 | Interface and Description |
---|---|
interface |
BindingsSpec
A buildable specification of Guice bindings.
|
Modifier and Type | Method and Description |
---|---|
default <O> RegistrySpec |
BindingsSpec.add(TypeToken<? super O> type,
O object) |
default <O> RegistrySpec |
BindingsSpec.addLazy(TypeToken<O> type,
Supplier<? extends O> supplier) |
Modifier and Type | Method and Description |
---|---|
default Chain |
Chain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) . |
default 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 <O> RegistrySpec |
RegistrySpec.addLazyAsync(Class<O> type,
Supplier<? extends Promise<? extends O>> supplier) |
default <O> RegistrySpec |
RegistrySpec.addLazyAsync(TypeToken<O> type,
Supplier<? extends Promise<? extends O>> supplier) |
default RegistrySpec |
RegistrySpec.with(Action<? super RegistrySpec> action)
Executes the given action with
this . |
Modifier and Type | Method and Description |
---|---|
static Registry |
Registry.of(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 |
---|---|
default RatpackServerSpec |
RatpackServerSpec.registryOf(Action<? super RegistrySpec> action)
Builds the user registry via the given spec action.
|
Modifier and Type | Method and Description |
---|---|
static CloseableApplicationUnderTest |
ApplicationUnderTest.of(Class<?> mainClass,
Action<? super RegistrySpec> action) |
Modifier and Type | Method and Description |
---|---|
void |
ExecHarness.run(Action<? super RegistrySpec> registry,
Action<? super Execution> action)
Initiates an execution and blocks until it completes.
|
static void |
ExecHarness.runSingle(Action<? super RegistrySpec> registry,
Action<? super Execution> action)
Convenient form of
ExecHarness.run(Action, Action) that creates and closes a harness for the run. |
<T> ExecResult<T> |
ExecHarness.yield(Action<? super RegistrySpec> registry,
Function<? super Execution,? extends Promise<T>> func)
Synchronously returns a promised value.
|
static <T> ExecResult<T> |
ExecHarness.yieldSingle(Action<? super RegistrySpec> registry,
Function<? super Execution,? extends Promise<T>> func)
Creates an exec harness,
executes the given function with it before closing it, then returning execution result. |
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.
|