Package | Description |
---|---|
ratpack.exec | |
ratpack.func |
General functional (i.e.
|
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.groovy.test | |
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.groovy.test.handling | |
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.http.client | |
ratpack.registry |
Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.
|
ratpack.test | |
ratpack.test.handling | |
ratpack.websocket |
Support for Websockets.
|
Modifier and Type | Class and Description |
---|---|
class |
Fulfillment<T>
Convenience base for
Action<Fulfiller<T>> implementations. |
Modifier and Type | Method and Description |
---|---|
void |
ExecController.exec(ExecContext.Supplier execContextSupplier,
Action<? super ExecContext> action) |
SuccessPromise<T> |
Promise.onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|
<T> Promise<T> |
ExecContext.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
<T> Promise<T> |
ExecControl.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
void |
Promise.then(Action<? super T> then)
Specifies what should be done with the promised object when it is ready.
|
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 <T> Action<T> |
Actions.join(Action<? super T>... actions)
Returns a new action that executes the given actions in order
|
static <T> Action<T> |
Actions.noop()
Returns an action that does precisely nothing.
|
Modifier and Type | Method and Description |
---|---|
static <T> Action<T> |
Actions.join(Action<? super T>... actions)
Returns a new action that executes the given actions in order
|
Modifier and Type | Method and Description |
---|---|
static Action<Chain> |
Groovy.chain(Closure<?> closure)
Creates a chain action implementation from the given closure.
|
Modifier and Type | Class and Description |
---|---|
class |
GroovyChainAction
Convenient super class for packaging up Groovy handler chain logic.
|
Modifier and Type | Method and Description |
---|---|
Handler |
GroovyChainAction.chain(Action<? super Chain> action) |
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
GroovyChain |
GroovyChainAction.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.insert(Action<? super Chain> action)
Inserts the given nested handler chain.
|
GroovyChain |
GroovyChainAction.insert(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 . |
GroovyChain |
GroovyChainAction.prefix(String prefix,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) |
GroovyChain |
GroovyChainAction.register(Action<? super RegistrySpec> action) |
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...) . |
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...) . |
GroovyChain |
GroovyChainAction.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> chainAction) |
GroovyChain |
GroovyChainAction.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> chainAction) |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Closure<?> handler) |
GroovyChain |
GroovyChainAction.register(Action<? super RegistrySpec> registryAction,
Closure<?> handler) |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Handler handler)
Adds a handler that inserts the given handler with the a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
GroovyChain |
GroovyChainAction.register(Action<? super RegistrySpec> registryAction,
Handler handler) |
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 |
GroovyChainAction.register(Registry registry,
Action<? super Chain> action) |
Modifier and Type | Method and Description |
---|---|
static HandlingResult |
GroovyUnitTest.handle(Action<? super Chain> handlers,
Closure<?> closure)
Unit test a chain of
handlers . |
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 |
---|---|
GroovyRequestFixture |
GroovyRequestFixture.launchConfig(Action<? super LaunchConfigBuilder> action) |
GroovyRequestFixture |
GroovyRequestFixture.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action) |
GroovyRequestFixture |
GroovyRequestFixture.registry(Action<? super RegistrySpec> 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
Convenient super class for packaging up Groovy handler chain logic.
|
Modifier and Type | Method and Description |
---|---|
void |
Context.addExecInterceptor(ExecInterceptor execInterceptor,
Action<? super Context> action) |
Handler |
Chain.chain(Action<? super Chain> action)
Constructs a handler using the given action to define a chain.
|
Handler |
ChainAction.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)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
Chain |
ChainAction.fileSystem(String path,
Action<? super Chain> action) |
Chain |
Chain.insert(Action<? super Chain> action)
Inserts the given nested handler chain.
|
Chain |
ChainAction.insert(Action<? super Chain> action) |
void |
Context.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 . |
Chain |
ChainAction.prefix(String prefix,
Action<? super Chain> action) |
<T> Promise<T> |
Context.promise(Action<? super Fulfiller<T>> action)
Creates a promise of a value that will made available asynchronously.
|
Chain |
Chain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) |
Chain |
ChainAction.register(Action<? super RegistrySpec> action) |
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...) . |
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...) . |
Chain |
ChainAction.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> action) |
Chain |
ChainAction.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> action) |
Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Handler handler)
Adds a handler that inserts the given handler with the a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
Chain |
ChainAction.register(Action<? super RegistrySpec> registryAction,
Handler handler) |
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...) . |
Chain |
ChainAction.register(Registry registry,
Action<? super Chain> action) |
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 |
---|---|
RequestSpec |
RequestSpec.body(Action<? super RequestSpec.Body> action) |
Promise<ReceivedResponse> |
HttpClient.get(String httpUrl,
Action<? super RequestSpec> action) |
Promise<ReceivedResponse> |
HttpClient.post(String httpUrl,
Action<? super RequestSpec> action) |
Promise<ReceivedResponse> |
HttpClient.request(String httpUrl,
Action<? super RequestSpec> action) |
RequestSpec.Body |
RequestSpec.Body.stream(Action<? super OutputStream> action) |
Modifier and Type | Class and Description |
---|---|
class |
RegistrySpecAction |
Modifier and Type | Method and Description |
---|---|
static Registry |
Registries.registry(Action<? super RegistrySpec> action)
Builds a registry from the given action.
|
Modifier and Type | Method and Description |
---|---|
static HandlingResult |
UnitTest.handle(Action<? super Chain> chainAction,
Action<? super RequestFixture> requestFixtureAction)
Unit test a
Handler chain. |
static HandlingResult |
UnitTest.handle(Action<? super Chain> chainAction,
Action<? super RequestFixture> requestFixtureAction)
Unit test a
Handler chain. |
static HandlingResult |
UnitTest.handle(Handler handler,
Action<? super RequestFixture> action)
Unit test a single
Handler . |
Modifier and Type | Class and Description |
---|---|
class |
RequestFixtureAction
Convenient super class for
RequestFixture configuration actions. |
Modifier and Type | Method and Description |
---|---|
HandlingResult |
RequestFixture.handle(Action<? super Chain> chainAction)
Similar to
RequestFixture.handle(ratpack.handling.Handler) , but for testing a handler chain. |
HandlingResult |
RequestFixtureAction.handle(Action<? super Chain> chainAction)
Similar to
RequestFixture.handle(ratpack.handling.Handler) , but for testing a handler chain. |
RequestFixture |
RequestFixture.launchConfig(Action<? super LaunchConfigBuilder> action)
Configures the launch config to have no base dir and given configuration.
|
RequestFixture |
RequestFixtureAction.launchConfig(Action<? super LaunchConfigBuilder> action)
Configures the launch config to have no base dir and given configuration.
|
RequestFixture |
RequestFixture.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action)
Configures the launch config to have the given base dir and given configuration.
|
RequestFixture |
RequestFixtureAction.launchConfig(Path baseDir,
Action<? super LaunchConfigBuilder> action)
Configures the launch config to have the given base dir and given configuration.
|
RequestFixture |
RequestFixture.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|
RequestFixture |
RequestFixtureAction.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|
Modifier and Type | Method and Description |
---|---|
WebSocketBuilder<T> |
WebSocketBuilder.onClose(Action<WebSocketClose<T>> action) |
WebSocketBuilder<T> |
WebSocketBuilder.onMessage(Action<WebSocketMessage<T>> action) |