Package | Description |
---|---|
ratpack.config |
Provides the ability to access configuration data from a variety of sources, such as YAML, JSON,
properties files, system properties, and environment variables.
|
ratpack.file |
Types for dealing with the file system and serving files.
|
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.template |
Support for templating based on embedded Groovy code in text.
|
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.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
default ServerConfig |
ConfigData.getServerConfig() |
default ServerConfig |
ConfigData.getServerConfig(String pointer) |
Modifier and Type | Method and Description |
---|---|
static FileSystemChecksumService |
FileSystemChecksumServices.service(ServerConfig serverConfig) |
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 |
---|---|
protected void |
MarkupTemplateModule.defaultConfig(ServerConfig serverConfig,
MarkupTemplateModule.Config config) |
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.assets(ServerConfig serverConfig,
String path,
List<String> indexFiles)
A handler that serves static assets at the given file system path, relative to the contextual file system binding.
|
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.fileSystem(ServerConfig serverConfig,
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)
A method to create an instance of the default implementation of HttpClient.
|
Modifier and Type | Method and Description |
---|---|
ServerConfig |
ServerConfig.Builder.build() |
ServerConfig |
RatpackServer.Definition.getServerConfig()
The base server configuration.
|
Modifier and Type | Method and Description |
---|---|
RatpackServer.Definition.Builder |
RatpackServer.Definition.Builder.serverConfig(ServerConfig serverConfig)
Specifies the server configuration for the application.
|
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromServer(ServerConfig serverConfig,
Function<? super RatpackServer.Definition.Builder,? extends RatpackServer.Definition> builder)
Creates an embedded application using the given server config, and server creating function.
|