Package | Description |
---|---|
ratpack.exec |
The execution management.
|
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.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
ratpack.jackson |
Integration with the Jackson JSON marshalling library.
|
ratpack.launch |
Classes used to bootstrap a Ratpack application.
|
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.server |
Objects used to start a ratpack application.
|
ratpack.spring |
Provides integration with Spring Boot.
|
ratpack.stream |
Support for reactive streams.
|
ratpack.test | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
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 |
---|---|
static Function<Registry,Registry> |
Groovy.Script.bindings() |
static Function<Registry,Registry> |
Groovy.Script.bindings() |
static Function<Registry,Registry> |
Groovy.Script.bindings(boolean staticCompile) |
static Function<Registry,Registry> |
Groovy.Script.bindings(boolean staticCompile) |
static Function<Registry,Registry> |
Groovy.Script.bindings(boolean staticCompile,
String scriptPath) |
static Function<Registry,Registry> |
Groovy.Script.bindings(boolean staticCompile,
String scriptPath) |
static Function<Registry,Handler> |
Groovy.Script.handlers() |
static Function<Registry,Handler> |
Groovy.Script.handlers(boolean staticCompile) |
static Function<Registry,Handler> |
Groovy.Script.handlers(boolean staticCompile,
String scriptPath) |
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
static Handler |
Groovy.chain(ServerConfig serverConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyContext
Subclass of
Context that adds Groovy friendly variants of methods. |
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.
|
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...) . |
default GroovyChain |
GroovyChain.register(Registry registry,
Class<? extends Action<? super Chain>> action) |
GroovyChain |
GroovyChain.register(Registry registry,
Closure<?> handlers) |
Modifier and Type | Method and Description |
---|---|
static Registry |
Guice.justInTimeRegistry(Injector injector)
|
static Registry |
Guice.registry(Injector injector)
|
Modifier and Type | Method and Description |
---|---|
static Function<Registry,Registry> |
Guice.registry(Action<? super BindingsSpec> bindings) |
static Function<Registry,Registry> |
Guice.registry(Action<? super BindingsSpec> bindings) |
static Function<Registry,Registry> |
Guice.registry(Injector parentInjector,
Action<? super BindingsSpec> bindings) |
static Function<Registry,Registry> |
Guice.registry(Injector parentInjector,
Action<? super BindingsSpec> bindings) |
Modifier and Type | Interface and Description |
---|---|
interface |
Context
The context of an individual
Handler invocation. |
Modifier and Type | Method and Description |
---|---|
Registry |
Chain.getRegistry()
The registry that backs this chain.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
static Handler |
Handlers.chain(ServerConfig serverConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
Handler |
HandlerDecorator.decorate(Registry serverRegistry,
Handler rest)
Creates a new handler that decorates the application handlers, given as the
rest argument. |
void |
Context.insert(Registry registry,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.
|
void |
Context.next(Registry registry)
Invokes the next handler, after adding the given registry.
|
Chain |
Chain.register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.
|
static Handler |
Handlers.register(Registry registry)
A handler that simply calls
Context.next(Registry) with the given registry. |
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...) . |
default Chain |
Chain.register(Registry registry,
Class<? extends Action<? super Chain>> action) |
static Handler |
Handlers.register(Registry registry,
Handler handler)
A handler that simply calls
Context.insert(Registry, Handler...) with the given registry and handler. |
Modifier and Type | Interface and Description |
---|---|
interface |
Request
A request to be handled.
|
Modifier and Type | Method and Description |
---|---|
static HttpClient |
HttpClient.httpClient(ServerConfig serverConfig,
Registry registry)
A method to create an instance of the default implementation of HttpClient.
|
Modifier and Type | Method and Description |
---|---|
static <T> ResponseChunks |
Jackson.chunkedJsonList(Registry registry,
org.reactivestreams.Publisher<T> stream)
Renders a data stream as a JSON list, directly streaming the JSON.
|
static <T> Function<T,String> |
Jackson.toJson(Registry registry)
Creates a mapping function that returns the JSON representation as a string of the input object.
|
Modifier and Type | Method and Description |
---|---|
Handler |
HandlerFactory.create(Registry registry)
Creates a handler from the given launch config.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableRegistry
A
Registry that is also mutable. |
Modifier and Type | Method and Description |
---|---|
static Registry |
Registries.backedRegistry(RegistryBacking registryBacking)
Creates a new registry instance that is backed by a RegistryBacking implementation.
|
Registry |
RegistryBuilder.build()
Builds the registry.
|
static Registry |
Registries.empty()
Returns an empty registry.
|
default Registry |
Registry.join(Registry child)
Creates a new registry by joining
this registry with the given registry |
static <T> Registry |
Registries.just(Class<? super T> publicType,
T implementation)
Creates a single entry registry, using
RegistryBuilder.add(Class, Object) . |
static <T> Registry |
Registries.just(Class<T> publicType,
Supplier<? extends T> supplier)
Creates a single lazily created entry registry, using
RegistryBuilder.addLazy(Class, Supplier) . |
static Registry |
Registries.just(Object object)
Creates a single entry registry, using
RegistryBuilder.add(Object) . |
static Registry |
Registries.registry(Action<? super RegistrySpec> action)
Builds a registry from the given action.
|
Modifier and Type | Method and Description |
---|---|
default Registry |
Registry.join(Registry child)
Creates a new registry by joining
this registry with the given registry |
Modifier and Type | Interface and Description |
---|---|
interface |
CommandDelegate
The delegate object for commands
|
Modifier and Type | Method and Description |
---|---|
Registry |
StartEvent.getRegistry()
Retrieves the server registry for this instance
|
Registry |
StopEvent.getRegistry()
Retrieves the server registry for this instance
|
Modifier and Type | Method and Description |
---|---|
Function<? super Registry,? extends Handler> |
RatpackServer.Definition.getHandlerFactory()
The handler factory.
|
Function<? super Registry,? extends Registry> |
RatpackServer.Definition.getUserRegistryFactory()
The user registry.
|
Function<? super Registry,? extends Registry> |
RatpackServer.Definition.getUserRegistryFactory()
The user registry.
|
Modifier and Type | Method and Description |
---|---|
static StartEvent |
StartEvent.build(Registry registry,
boolean reload)
Builder for start events.
|
static StopEvent |
StopEvent.build(Registry registry,
boolean reload)
Builder for stop events.
|
RatpackServer.Definition.Builder |
RatpackServer.Definition.Builder.registry(Registry registry)
Specifies the user registry.
|
boolean |
ReloadInformant.shouldReload(Registry registry)
Whether the server should reload.
|
Modifier and Type | Method and Description |
---|---|
RatpackServer.Definition |
RatpackServer.Definition.Builder.handler(Function<? super Registry,? extends Handler> handlerFactory)
Builds the server definition from the given factory, and state of this builder.
|
RatpackServer.Definition.Builder |
RatpackServer.Definition.Builder.registry(Function<? super Registry,? extends Registry> function)
Specifies the user registry.
|
RatpackServer.Definition.Builder |
RatpackServer.Definition.Builder.registry(Function<? super Registry,? extends Registry> function)
Specifies the user registry.
|
Modifier and Type | Method and Description |
---|---|
static Registry |
Spring.spring(Class<?> clazz,
String... args)
Creates a registry backed by the given Spring Boot application class.
|
static Registry |
Spring.spring(ListableBeanFactory beanFactory)
Creates a registry backed by the given bean factory.
|
static Registry |
Spring.spring(SpringApplicationBuilder builder,
String... args)
Creates a registry backed by the given Spring Boot application builder.
|
Modifier and Type | Method and Description |
---|---|
static <T> TransformablePublisher<T> |
Streams.periodically(Registry registry,
Duration duration,
Function<Integer,T> producer) |
Modifier and Type | Method and Description |
---|---|
protected Registry |
MainClassApplicationUnderTest.createOverrides(Registry serverRegistry) |
Modifier and Type | Method and Description |
---|---|
protected Registry |
MainClassApplicationUnderTest.createOverrides(Registry serverRegistry) |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromHandlerFactory(Function<? super Registry,? extends Handler> handlerFactory)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromHandlerFactory(Path baseDir,
Function<? super Registry,? extends Handler> handlerFactory)
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
|
Modifier and Type | Method and Description |
---|---|
Registry |
HandlingResult.getRegistry()
The final state of the context registry.
|
Registry |
HandlingResult.getRequestRegistry()
The final state of the request registry.
|