Package | Description |
---|---|
ratpack.file |
Types for dealing with the file system and serving files.
|
ratpack.form |
Support for handling uploaded forms, including file uploads.
|
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.test | |
ratpack.handling |
The handling of application requests.
|
ratpack.http |
The HTTP protocol.
|
ratpack.jackson |
Integration with the Jackson JSON marshalling library.
|
ratpack.launch |
Classes used to bootstrap a Ratpack application.
|
ratpack.parse |
Parsing in Ratpack refers to deserializing a request body into a Java object of some type.
|
ratpack.path |
Types for managing the paths of requests inside the application.
|
ratpack.registry |
Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.
|
ratpack.render |
The renderer framework provides a pluggable mechanism for serializing objects to the response.
|
ratpack.test | |
ratpack.test.handling | |
ratpack.util |
General purpose types and utilities.
|
Modifier and Type | Method and Description |
---|---|
Path |
FileSystemBinding.file(String path)
Creates a file reference relative to the bind point denoted by the given relative path.
|
Modifier and Type | Method and Description |
---|---|
UploadedFile |
Form.file(String name)
Return the first uploaded file with the given name.
|
String |
UploadedFile.getFileName()
The name given for the file.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
Modifier and Type | Method and Description |
---|---|
Registry |
GroovyChainAction.getRegistry() |
Modifier and Type | Method and Description |
---|---|
static TestHttpClient |
TestHttpClients.testHttpClient(ApplicationUnderTest applicationUnderTest,
Action<RequestSpecification> requestConfigurer) |
Modifier and Type | Method and Description |
---|---|
Registry |
Chain.getRegistry()
The registry that backs this.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
Modifier and Type | Method and Description |
---|---|
String |
Headers.get(String name)
Returns the header value with the specified header name.
|
Date |
Headers.getDate(String name)
Returns the header value as a date with the specified header name.
|
String |
MediaType.getType()
The type without parameters.
|
String |
Request.oneCookie(String name)
Returns the value of the cookie with the specified name if it was sent.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapper |
JsonParseOpts.getObjectMapper() |
ObjectWriter |
JsonRender.getObjectWriter()
The object writer to use to render the object as JSON.
|
Modifier and Type | Method and Description |
---|---|
static <T> Parse<T,JsonParseOpts> |
Jackson.fromJson(Class<T> type,
ObjectMapper objectMapper) |
static <T> JsonRender<T> |
Jackson.json(T object,
ObjectWriter objectWriter)
Jackson rendering of the given object, using the given object writer.
|
static Parse<JsonNode,JsonParseOpts> |
Jackson.jsonNode(ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
LaunchConfig.getAddress()
The address of the interface that the application should bind to.
|
SSLContext |
LaunchConfig.getSSLContext()
The SSL context to use if the application will serve content over HTTPS.
|
Modifier and Type | Method and Description |
---|---|
static LaunchConfig |
LaunchConfigFactory.createFromFile(ClassLoader classLoader,
Path baseDir,
Path configFile,
Properties overrideProperties,
Properties defaultProperties)
Delegates to
LaunchConfigFactory.createWithBaseDir(ClassLoader, java.nio.file.Path, java.util.Properties) , after merging the properties from configFile and overrideProperties . |
Modifier and Type | Method and Description |
---|---|
<T> T |
Parser.parse(Context context,
TypedData requestBody,
Parse<T,O> parse)
Deserializes the request body of the context into an object.
|
Modifier and Type | Method and Description |
---|---|
PathBinding |
PathBinder.bind(String path,
PathBinding parentBinding)
Creates a binding for the given path, if this binder can bind to this path.
|
Modifier and Type | Method and Description |
---|---|
PathBinding |
PathBinder.bind(String path,
PathBinding parentBinding)
Creates a binding for the given path, if this binder can bind to this path.
|
Modifier and Type | Method and Description |
---|---|
<O> O |
Registry.maybeGet(Class<O> type)
Does the same thing as
Registry.get(Class) , except returns null instead of throwing an exception. |
Modifier and Type | Method and Description |
---|---|
Class<T> |
Renderer.getType()
The type of object that this renderer can render.
|
Modifier and Type | Method and Description |
---|---|
InetAddress |
MockLaunchConfig.getAddress()
Returns null.
|
SSLContext |
MockLaunchConfig.getSSLContext()
Returns null.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
Invocation.getBodyBytes() |
String |
Invocation.getBodyText() |
Integer |
Invocation.getClientError() |
Exception |
Invocation.getException() |
Path |
Invocation.getSentFile() |
<T> T |
Invocation.rendered(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
V |
MultiValueMap.get(Object key)
Get the first value for the key, or
null if there are no values for the key. |