Package | Description |
---|---|
ratpack.func |
General functional (i.e.
|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
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 |
Low level direct access to the underlying Netty internals.
|
ratpack.promise |
Promises are strategy builders for the result of async operations.
|
ratpack.test | |
ratpack.util |
General purpose types and utilities.
|
ratpack.websocket |
Support for Websockets.
|
Modifier and Type | Method and Description |
---|---|
static <T> Action<T> |
Actions.noop()
Returns an action that does precisely nothing.
|
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.prefix(String prefix,
Action<? super Chain> action)
Adds a handler that delegates to the given handlers if the
relative path starts with the given
prefix . |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.register(Object service,
Action<? super Chain> action)
Adds a handler to this chain that inserts the given handler with the given service addition.
|
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 | Class and Description |
---|---|
class |
ChainAction
Convenience subclass for
Action implementations. |
Modifier and Type | Method and Description |
---|---|
Handler |
Chain.chain(Action<? super Chain> action)
Constructs a handler using the given action to define a chain.
|
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)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
void |
MinimalContext.onClose(Action<? super RequestOutcome> onClose)
Registers a callback to be notified when the request for this context is “closed” (i.e.
|
Chain |
Chain.prefix(String prefix,
Action<? super Chain> action)
Adds a handler that delegates to the given handlers if the
relative path starts with the given
prefix . |
<T> Chain |
Chain.register(Class<? super T> type,
T service,
Action<? super Chain> action)
Adds a handler to this chain that inserts the given handler chain with the given service addition.
|
Chain |
Chain.register(Object service,
Action<? super Chain> action)
Adds a handler to this chain that inserts the given handler with the given service addition.
|
<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)
Signals that Ratpack should no longer manage this channel.
|
Modifier and Type | Method and Description |
---|---|
SuccessPromise<T> |
SuccessOrErrorPromise.onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|
void |
SuccessPromise.then(Action<? super T> then)
Specifies what should be done with the promised object when it is ready.
|
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) |