Package | Description |
---|---|
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.server |
Groovy implementations of the Ratpack server building classes.
|
ratpack.groovy.template |
Support for templating based on embedded Groovy code in text.
|
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.http.client |
The HTTP client.
|
ratpack.server |
Objects used to start a ratpack application.
|
ratpack.spring.config | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(ServerConfig serverConfig,
Closure<?> closure)
Builds a handler chain, with no backing registry.
|
static Handler |
Groovy.chain(ServerConfig serverConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
Modifier and Type | Method and Description |
---|---|
ServerConfig |
GroovyChainAction.getServerConfig()
The server config of the application that this chain is being created for.
|
Modifier and Type | Method and Description |
---|---|
GroovyRatpackServerSpec |
GroovyRatpackServerSpec.serverConfig(ServerConfig serverConfig) |
Modifier and Type | Method and Description |
---|---|
protected void |
MarkupTemplateModule.defaultConfig(ServerConfig serverConfig,
MarkupTemplateModule.Config config) |
Modifier and Type | Method and Description |
---|---|
static GroovyEmbeddedApp |
GroovyEmbeddedApp.fromServer(ServerConfig serverConfig,
Closure<?> definition) |
Modifier and Type | Method and Description |
---|---|
ServerConfig |
BindingsSpec.getServerConfig()
The launch config for the application.
|
Modifier and Type | Method and Description |
---|---|
protected T |
ConfigurableModule.createConfig(ServerConfig serverConfig)
Creates the configuration object.
|
protected void |
ConfigurableModule.defaultConfig(ServerConfig serverConfig,
T config)
Hook for applying any default configuration to the configuration object created by
ConfigurableModule.createConfig(ServerConfig) . |
static Function<Module,Injector> |
Guice.newInjectorFactory(ServerConfig serverConfig) |
Modifier and Type | Method and Description |
---|---|
ServerConfig |
Context.getServerConfig()
The server configuration for the application.
|
ServerConfig |
Chain.getServerConfig()
The server config of the application that this chain is being created for.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(ServerConfig serverConfig,
Action<? super Chain> action)
Builds a handler chain, with no backing registry.
|
static Handler |
Handlers.chain(ServerConfig serverConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
static Handler |
Handlers.files(ServerConfig serverConfig,
Action<? super FileHandlerSpec> config)
Creates a handler that serves files from the file system.
|
static Handler |
Handlers.fileSystem(ServerConfig serverConfig,
java.lang.String path,
Handler handler)
A handlers that changes the
FileSystemBinding for the given handlers. |
Modifier and Type | Method and Description |
---|---|
static HttpClient |
HttpClient.httpClient(ServerConfig serverConfig,
Registry registry)
Deprecated.
since 1.4, use
HttpClient.of(Action) |
Modifier and Type | Field and Description |
---|---|
static TypeToken<ServerConfig> |
ServerConfig.TYPE
A type token for this type.
|
Modifier and Type | Method and Description |
---|---|
ServerConfig |
ServerConfigBuilder.build()
Builds the server config.
|
static ServerConfig |
ServerConfig.of(Action<? super ServerConfigBuilder> action) |
Modifier and Type | Method and Description |
---|---|
RatpackServerSpec |
RatpackServerSpec.serverConfig(ServerConfig serverConfig)
Sets the server configuration for the application.
|
Modifier and Type | Method and Description |
---|---|
ServerConfig |
RatpackConfiguration.ServerConfigConfiguration.ratpackServerConfig() |
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.
|