Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.http.client |
The HTTP client.
|
ratpack.test | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
ratpack.test.http | |
ratpack.util |
General purpose types and utilities.
|
Modifier and Type | Method and Description |
---|---|
default <T> Promise<T> |
Operation.flatMap(Factory<? extends Promise<T>> factory) |
static <T> Promise<T> |
Blocking.get(Factory<T> factory)
Performs a blocking operation on a separate thread, returning a promise for its value.
|
default <T> Promise<T> |
Operation.map(Factory<? extends T> factory) |
static <T> Promise<T> |
Promise.ofLazy(Factory<T> factory)
Creates a promise for value produced by the given factory.
|
static <T> Promise<T> |
Promise.wrap(Factory<? extends Promise<T>> factory) |
Modifier and Type | Method and Description |
---|---|
default RequestSpec |
RequestSpec.sslContext(Factory<SSLContext> factory)
Factory method to create
SSLContext used for client and server SSL authentication. |
Modifier and Type | Method and Description |
---|---|
static CloseableApplicationUnderTest |
ApplicationUnderTest.of(Factory<? extends RatpackServer> ratpackServer) |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromServer(Factory<? extends RatpackServer> server)
Creates an embedded application for the given server.
|
Modifier and Type | Method and Description |
---|---|
static TestHttpClient |
TestHttpClient.testHttpClient(Factory<? extends RatpackServer> server) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
Exceptions.uncheck(Factory<T> factory)
Executes the given factory, returning its result and unchecking any exceptions it throws.
|