Package | Description |
---|---|
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyEmbeddedApp
A highly configurable
EmbeddedApp implementation that allows the application to be defined in code at runtime. |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
GroovyEmbeddedApp.build(Closure<?> closure) |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromHandler(Handler handler)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromHandler(Path baseDir,
Handler handler)
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
|
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.
|
static EmbeddedApp |
EmbeddedApp.fromHandlers(Action<? super Chain> action)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler chain.
|
static EmbeddedApp |
EmbeddedApp.fromServer(Factory<? extends RatpackServer> server)
Creates an embedded application for the given server.
|
static EmbeddedApp |
EmbeddedApp.fromServer(RatpackServer server)
Creates an embedded application for the given server.
|
static EmbeddedApp |
EmbeddedApp.fromServer(ServerConfig.Builder serverConfig,
Action<? super RatpackServerSpec> definition)
Creates an embedded application using the given server config, and server creating function.
|
static EmbeddedApp |
EmbeddedApp.fromServer(ServerConfig serverConfig,
Action<? super RatpackServerSpec> definition)
Creates an embedded application using the given server config, and server creating function.
|
static EmbeddedApp |
EmbeddedApp.of(Action<? super RatpackServerSpec> definition)
Creates an embedded application from the given function.
|
static EmbeddedApp |
EmbeddedApp.of(Path baseDir,
Action<? super RatpackServerSpec> definition) |