Package | Description |
---|---|
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 |
---|---|
static FileSystemChecksumService |
FileSystemChecksumServices.adler32(ServerConfig serverConfig,
String path,
String... fileEndsWith)
Get checksum service with Adler32 calculation method.
|
static FileSystemChecksumService |
FileSystemChecksumServices.md5(ServerConfig serverConfig,
String path,
String... fileEndsWith)
Get checksum service with MD5 calculation method.
|
static FileSystemChecksumService |
FileSystemChecksumServices.service(ServerConfig serverConfig)
Get checksum service that is backward compatible - calculates file checksum with Adler32 method.
|
static FileSystemChecksumService |
FileSystemChecksumServices.service(ServerConfig serverConfig,
Function<? super InputStream,? extends String> checksummerFunc)
Get checksum service with calculation method given as checksummer function.
|
static FileSystemChecksumService |
FileSystemChecksumServices.service(ServerConfig serverConfig,
Function<? super InputStream,? extends String> checksummerFunc,
String path,
String... fileEndsWith)
Get checksum service for additional path related to server's base dir and calculation method as checksummer function.
|
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 |
Chain.getServerConfig()
The server config of the application that this chain is being created for.
|
ServerConfig |
Context.getServerConfig()
The server configuration for the application.
|
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()
Builds the server config.
|
Modifier and Type | Method and Description |
---|---|
RatpackServerSpec |
RatpackServerSpec.serverConfig(ServerConfig serverConfig)
Sets the server configuration for the application.
|
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.
|