Package | Description |
---|---|
ratpack.server |
Objects used to start a ratpack application.
|
ratpack.spring.config | |
ratpack.test | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
static RatpackServer |
RatpackServer.of(Action<? super RatpackServerSpec> definition)
Creates a new, unstarted, Ratpack server from the given definition.
|
RatpackServer |
RatpackServer.reload()
Reloads the server from its definition function.
|
static RatpackServer |
RatpackServer.start(Action<? super RatpackServerSpec> definition)
|
Modifier and Type | Method and Description |
---|---|
RatpackServer |
RatpackConfiguration.ServerConfiguration.ratpackServer(ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
protected RatpackServer |
MainClassApplicationUnderTest.createServer()
Starts the Ratpack server by invoking the
public static void main(String[]) method of the “main class” backing this object. |
protected abstract RatpackServer |
ServerBackedApplicationUnderTest.createServer()
Creates the server to be tested.
|
Modifier and Type | Method and Description |
---|---|
static ServerBackedApplicationUnderTest |
ServerBackedApplicationUnderTest.of(RatpackServer ratpackServer)
Creates a new instance backed by the given server.
|
Modifier and Type | Method and Description |
---|---|
static ServerBackedApplicationUnderTest |
ServerBackedApplicationUnderTest.of(Factory<? extends RatpackServer> ratpackServer)
Creates a new instance backed by the server returned by the given function.
|
Modifier and Type | Method and Description |
---|---|
RatpackServer |
EmbeddedApp.getServer()
The server for the application.
|
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromServer(RatpackServer server)
Creates an embedded application for the given server.
|
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromServer(Factory<? extends RatpackServer> server)
Creates an embedded application for the given server.
|