Package | Description |
---|---|
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.server |
Groovy implementations of the Ratpack server building classes.
|
ratpack.server |
Objects used to start a ratpack application.
|
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
static Action<? super RatpackServerSpec> |
Groovy.Script.app() |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean staticCompile) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean compileStatic,
Path script) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean staticCompile,
String... scriptPaths) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(Path script) |
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyRatpackServerSpec |
Modifier and Type | Method and Description |
---|---|
static GroovyRatpackServerSpec |
GroovyRatpackServerSpec.from(RatpackServerSpec spec) |
Modifier and Type | Method and Description |
---|---|
default RatpackServerSpec |
RatpackServerSpec.handler(Class<? extends Handler> handlerType)
Sets the root handler by getting a handler of the given type from the server registry.
|
RatpackServerSpec |
RatpackServerSpec.handler(Function<? super Registry,? extends Handler> handlerFactory)
Sets the root handler to the return of the given function.
|
default RatpackServerSpec |
RatpackServerSpec.handlers(Action<? super Chain> handlers)
Sets the root handler to the chain specified by the given action.
|
RatpackServerSpec |
RatpackServerSpec.registry(Function<? super Registry,? extends Registry> function)
Sets the user registry as the return value of the given function.
|
default RatpackServerSpec |
RatpackServerSpec.registry(Registry registry)
Sets the user registry to exactly the given registry.
|
default RatpackServerSpec |
RatpackServerSpec.registryOf(Action<? super RegistrySpec> action)
Builds the user registry via the given spec action.
|
default RatpackServerSpec |
RatpackServerSpec.serverConfig(Action<? super ServerConfigBuilder> action) |
RatpackServerSpec |
RatpackServerSpec.serverConfig(ServerConfig serverConfig)
Sets the server configuration for the application.
|
default RatpackServerSpec |
RatpackServerSpec.serverConfig(ServerConfigBuilder builder)
Convenience function that
builds the config from the given builder and delegates to serverConfig(ServerConfig) . |
Modifier and Type | Method and Description |
---|---|
static RatpackServer |
RatpackServer.of(Action<? super RatpackServerSpec> definition)
Creates a new, unstarted, Ratpack server from the given definition.
|
static RatpackServer |
RatpackServer.start(Action<? super RatpackServerSpec> definition)
Convenience method to
define and RatpackServer.start() the server in one go. |
Modifier and Type | Method and Description |
---|---|
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.fromServer(ServerConfigBuilder 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.
|