Package | Description |
---|---|
ratpack.background |
Mechanisms for executing operations that performing operations in the background (i.e.
|
ratpack.groovy.handling | |
ratpack.groovy.test | |
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.handling.direct | |
ratpack.test | |
ratpack.util |
General purpose types and utilities.
|
ratpack.websocket |
Modifier and Type | Method and Description |
---|---|
Background.Success<T> |
Background.SuccessOrError.onError(Action<? super Throwable> errorHandler)
Specifies the action to take should an error occur during the blocking operation.
|
void |
Background.Success.then(Action<? super T> then)
Specifies the success handler, and actually starts the process of having the blocking operation execute.
|
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.prefix(String prefix,
Action<? super Chain> action) |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.register(Object service,
Action<? super Chain> action) |
Modifier and Type | Method and Description |
---|---|
static TestHttpClient |
TestHttpClients.testHttpClient(ApplicationUnderTest applicationUnderTest,
Action<RequestSpecification> requestConfigurer) |
Modifier and Type | Method and Description |
---|---|
protected Action<? super ModuleRegistry> |
ClosureBackedEmbeddedApplication.createModulesAction()
Provides the module registry configuration action.
|
Modifier and Type | Method and Description |
---|---|
Handler |
GuiceBackedHandlerFactory.create(Action<? super ModuleRegistry> modulesAction,
Transformer<? super Module,? extends Injector> moduleTransformer,
Transformer<? super Injector,? extends Handler> handler) |
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
void |
ModuleRegistry.init(Action<Injector> action)
Registers an action to operate on the injector when it has been finalized.
|
Modifier and Type | Method and Description |
---|---|
Handler |
Chain.chain(Action<? super Chain> action) |
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Action<? super Chain> action)
Builds a handler chain, with no backing registry.
|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
Chain |
Chain.fileSystem(String path,
Action<? super Chain> action) |
void |
Context.onClose(Action<? super RequestOutcome> onClose) |
Chain |
Chain.prefix(String prefix,
Action<? super Chain> action) |
<T> Chain |
Chain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
Chain |
Chain.register(Object service,
Action<? super Chain> action) |
<T> ResultAction<T> |
Context.resultAction(Action<T> action)
Creates a result action that uses the contextual error handler if the result is failure.
|
Modifier and Type | Method and Description |
---|---|
void |
DirectChannelAccess.takeOwnership(Action<Object> messageReceiver) |
Modifier and Type | Method and Description |
---|---|
static Invocation |
UnitTest.invoke(Handler handler,
Action<? super InvocationBuilder> action)
Unit test a
Handler . |
Modifier and Type | Interface and Description |
---|---|
interface |
ResultAction<T>
Convenience subtype for an action that takes a result.
|
Modifier and Type | Method and Description |
---|---|
WebSocketBuilder<T> |
WebSocketBuilder.onClose(Action<WebSocketClose<T>> action) |
WebSocketBuilder<T> |
WebSocketBuilder.onMessage(Action<WebSocketMessage<T>> action) |