Package | Description |
---|---|
ratpack.codahale.metrics |
Integration with Coda Hale's Metrics Library.
|
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.exec |
The execution management.
|
ratpack.func |
General functional (i.e. Single Abstract Method) types.
|
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.guice |
Groovy specific extensions to the Guice support.
|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
ratpack.groovy.test.handling | |
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.handling.direct |
Low level direct access to the underlying Netty internals.
|
ratpack.http |
The HTTP protocol.
|
ratpack.http.client |
The HTTP client.
|
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.server |
Objects used to start a ratpack application.
|
ratpack.sse |
Support for Server Sent Events.
|
ratpack.stream |
Support for reactive streams.
|
ratpack.test | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
ratpack.test.exec | |
ratpack.test.handling | |
ratpack.test.http | |
ratpack.util |
General purpose types and utilities.
|
ratpack.websocket |
Support for Websockets.
|
Modifier and Type | Method and Description |
---|---|
CodaHaleMetricsModule.Config |
CodaHaleMetricsModule.Config.console(Action<? super CodaHaleMetricsModule.Config.Console> configure)
Configure the console metrics publisher.
|
CodaHaleMetricsModule.Config |
CodaHaleMetricsModule.Config.csv(Action<? super CodaHaleMetricsModule.Config.Csv> configure)
Configure the csv metrics publisher.
|
CodaHaleMetricsModule.Config |
CodaHaleMetricsModule.Config.jmx(Action<? super CodaHaleMetricsModule.Config.Jmx> configure)
Configure the JMX metrics publisher.
|
CodaHaleMetricsModule.Config |
CodaHaleMetricsModule.Config.webSocket(Action<? super CodaHaleMetricsModule.Config.WebSocket> configure)
Configure the websockets metrics broadcaster.
|
Modifier and Type | Method and Description |
---|---|
ConfigDataSpec |
ConfigDataSpec.configureObjectMapper(Action<ObjectMapper> action)
Configures the object mapper used for binding configuration data to arbitrary objects.
|
static ConfigData |
ConfigData.of(Action<? super ConfigDataSpec> definition)
Begins building a new application configuration using a default object mapper, from the given definition.
|
static ConfigData |
ConfigData.of(List<Module> modules,
Action<? super ConfigDataSpec> definition)
Begins building a new application configuration using a default object mapper with the supplied modules registered, from the given definition.
|
static ConfigData |
ConfigData.of(ObjectMapper objectMapper,
Action<? super ConfigDataSpec> definition)
Begins building a new application configuration using a specified object mapper, from the given definition.
|
ConfigDataSpec |
ConfigDataSpec.onError(Action<? super Throwable> errorHandler)
Sets the error handler that will be used for added configuration sources.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Fulfillment<T>
Convenience type for
Action<Fulfiller<T>> implementations. |
Modifier and Type | Method and Description |
---|---|
default Promise<T> |
Promise.defer(Action<? super Runnable> releaser)
Allows the execution of the promise to be deferred to a later time.
|
default void |
ExecControl.nest(Block nested,
Block then,
Action<? super Throwable> onError) |
ExecStarter |
ExecStarter.onComplete(Action<? super Execution> onComplete) |
default Downstream<T> |
Downstream.onError(Action<? super Throwable> action)
Wrap this downstream, using the given action as the implementation of the
Downstream.error(Throwable) method. |
ExecStarter |
ExecStarter.onError(Action<? super Throwable> onError) |
default Promise<T> |
Promise.onError(Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value.
|
default <O> Downstream<O> |
Downstream.onSuccess(Action<? super O> action)
Wrap this downstream, using the given action as the implementation of the
Downstream.success(T) method. |
<T> Promise<T> |
ExecControl.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
ExecStarter |
ExecStarter.register(Action<? super RegistrySpec> registry) |
default void |
Promise.result(Action<? super Result<T>> resultHandler)
Consume the promised value as a
Result . |
default Promise<T> |
Promise.route(Predicate<? super T> predicate,
Action<? super T> action)
Allows the promised value to be handled specially if it meets the given predicate, instead of being handled by the promise subscriber.
|
void |
ExecStarter.start(Action<? super Execution> action) |
void |
Promise.then(Action<? super T> then)
Specifies what should be done with the promised object when it becomes available.
|
default Promise<T> |
Promise.wiretap(Action<? super Result<T>> listener)
Registers a listener for the promise outcome.
|
Modifier and Type | Method and Description |
---|---|
static <T> Action<T> |
Action.from(Consumer<T> consumer)
Creates an action from a JDK consumer.
|
static <T> Action<T> |
Action.ignoreArg(Block block) |
static <T> Action<T> |
Action.join(Action<? super T>... actions)
Returns a new action that executes the given actions in order.
|
static Action<Object> |
Action.noop()
Returns an action that does precisely nothing.
|
static <T> Action<? super T> |
Action.noopIfNull(Action<T> action)
If the given action is
null , returns noop() , otherwise returns the given action. |
static Action<Throwable> |
Action.throwException()
Returns an action that receives a throwable and immediately throws it.
|
static <T> Action<T> |
Action.throwException(Throwable throwable)
Returns an action that immediately throws the given exception.
|
Modifier and Type | Method and Description |
---|---|
static <T> Action<T> |
Action.join(Action<? super T>... actions)
Returns a new action that executes the given actions in order.
|
static <T> Action<? super T> |
Action.noopIfNull(Action<T> action)
If the given action is
null , returns noop() , otherwise returns the given action. |
static <T> T |
Action.uncheckedWith(T t,
Action<? super T> action)
Like
with(Object, Action) , but unchecks any exceptions thrown by the action via Exceptions.uncheck(Throwable) . |
static <T> T |
Action.with(T t,
Action<? super T> action)
Executes the action with the given argument, then returns the argument.
|
Modifier and Type | Method and Description |
---|---|
static Action<? super RatpackServerSpec> |
Groovy.Script.app() |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean staticCompile) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean compileStatic,
Path script) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(boolean staticCompile,
String... scriptPaths) |
static Action<? super RatpackServerSpec> |
Groovy.Script.app(Path script) |
static Action<Chain> |
Groovy.chain(Closure<?> closure)
Creates a chain action implementation from the given closure.
|
static Action<Chain> |
Groovy.chainAction(Closure<?> closure)
Creates a chain action based on the given closure.
|
Modifier and Type | Method and Description |
---|---|
static MarkupTemplate |
Groovy.groovyMarkupTemplate(String id,
Action<? super ImmutableMap.Builder<String,Object>> modelBuilder)
Creates a
renderable Groovy based markup template, using the default content type. |
static MarkupTemplate |
Groovy.groovyMarkupTemplate(String id,
String type,
Action<? super ImmutableMap.Builder<String,Object>> modelBuilder)
Creates a
renderable Groovy based markup template. |
Modifier and Type | Method and Description |
---|---|
<C,T extends ConfigurableModule<C>> |
GroovyBindingsSpec.add(Class<T> moduleClass,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> GroovyBindingsSpec |
GroovyBindingsSpec.add(ConfigurableModule<C> module,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C,T extends ConfigurableModule<C>> |
GroovyBindingsSpec.addConfig(Class<T> moduleClass,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> GroovyBindingsSpec |
GroovyBindingsSpec.addConfig(ConfigurableModule<C> module,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
GroovyBindingsSpec |
GroovyBindingsSpec.binder(Action<? super Binder> action)
Adds bindings by directly configuring a
Binder . |
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
GroovyChain |
GroovyChain.host(String hostName,
Action<? super Chain> action)
Adds a handler to the chain that delegates to the given handler chain if the request has a
Host header that matches the given value exactly. |
GroovyChain |
GroovyChain.insert(Action<? super Chain> action)
Inserts the given nested handler chain.
|
GroovyChain |
GroovyChain.prefix(String prefix,
Action<? super Chain> action)
Adds a handler that delegates to the given handlers if the
relative path starts with the given
prefix . |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) . |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> chainAction)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> chainAction)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
default GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Closure<?> handler) |
GroovyChain |
GroovyChain.register(Registry registry,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with the given registry via
Context.insert(ratpack.registry.Registry, Handler...) . |
Modifier and Type | Method and Description |
---|---|
default GroovyChain |
GroovyChain.fileSystem(String path,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
GroovyChain.host(String hostName,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
GroovyChain.insert(Class<? extends Action<? super Chain>> action) |
default GroovyChain |
GroovyChain.prefix(String prefix,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
GroovyChain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
GroovyChain.register(Registry registry,
Class<? extends Action<? super Chain>> action) |
Modifier and Type | Method and Description |
---|---|
static HandlingResult |
GroovyRequestFixture.handle(Action<? super Chain> handlers,
Closure<?> closure)
Unit test a chain of
handlers . |
GroovyRequestFixture |
GroovyRequestFixture.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|
GroovyRequestFixture |
GroovyRequestFixture.serverConfig(Action<? super ServerConfig.Builder> action)
Configures the server config to have no base dir and given configuration.
|
GroovyRequestFixture |
GroovyRequestFixture.serverConfig(Path baseDir,
Action<? super ServerConfig.Builder> action)
Configures the server config to have the given base dir and given configuration.
|
Modifier and Type | Method and Description |
---|---|
<C,T extends ConfigurableModule<C>> |
BindingsSpec.add(Class<T> moduleClass,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> BindingsSpec |
BindingsSpec.add(ConfigurableModule<C> module,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C,T extends ConfigurableModule<C>> |
BindingsSpec.addConfig(Class<T> moduleClass,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> BindingsSpec |
BindingsSpec.addConfig(ConfigurableModule<C> module,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
BindingsSpec |
BindingsSpec.binder(Action<? super Binder> action)
Adds bindings by directly configuring a
Binder . |
void |
ConfigurableModule.configure(Action<? super T> configurer)
Registers the configuration action.
|
default <T> BindingsSpec |
BindingsSpec.multiBinder(Class<T> type,
Action<? super Multibinder<T>> action) |
default <T> BindingsSpec |
BindingsSpec.multiBinder(TypeLiteral<T> type,
Action<? super Multibinder<T>> action) |
default <T> BindingsSpec |
BindingsSpec.multiBinder(TypeToken<T> type,
Action<? super Multibinder<T>> action) |
static Function<Registry,Registry> |
Guice.registry(Action<? super BindingsSpec> bindings) |
static Function<Registry,Registry> |
Guice.registry(Injector parentInjector,
Action<? super BindingsSpec> bindings) |
Modifier and Type | Method and Description |
---|---|
void |
Context.byContent(Action<? super ByContentSpec> action)
Respond to the request based on the requested content type (i.e.
|
void |
Context.byMethod(Action<? super ByMethodSpec> action)
Respond to the request based on the request method.
|
Handler |
Chain.chain(Action<? super Chain> action)
Constructs a handler using the given action to define a chain.
|
static Handler |
Handlers.chain(Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
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.
|
Chain |
Chain.fileSystem(String path,
Action<? super Chain> action)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
Chain |
Chain.host(String hostName,
Action<? super Chain> action)
Adds a handler to the chain that delegates to the given handler chain if the request has a
Host header that matches the given value exactly. |
Chain |
Chain.insert(Action<? super Chain> action)
Inserts the given nested handler chain.
|
void |
Context.onClose(Action<? super RequestOutcome> onClose)
Registers a callback to be notified when the request for this context is “closed” (i.e.
|
Chain |
Chain.prefix(String prefix,
Action<? super Chain> action)
Adds a handler that delegates to the given handlers if the
relative path starts with the given
prefix . |
<T> Promise<T> |
Context.promise(Action<? super Fulfiller<T>> action)
Creates a promise of a value that will made available asynchronously.
|
Chain |
Chain.register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) . |
Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with a registry built by the given action via
Context.insert(ratpack.registry.Registry, Handler...) . |
default Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
Chain |
Chain.register(Registry registry,
Action<? super Chain> action)
Adds a handler that inserts the given handler chain with the given registry via
Context.insert(ratpack.registry.Registry, Handler...) . |
Modifier and Type | Method and Description |
---|---|
default Handler |
Chain.chain(Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.fileSystem(String path,
Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.host(String hostName,
Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.insert(Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.prefix(String prefix,
Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
default Chain |
Chain.register(Registry registry,
Class<? extends Action<? super Chain>> action) |
Modifier and Type | Method and Description |
---|---|
void |
DirectChannelAccess.takeOwnership(Action<Object> messageReceiver)
Signals that Ratpack should no longer manage this channel.
|
Modifier and Type | Method and Description |
---|---|
Response |
Response.beforeSend(Action<? super ResponseMetaData> responseFinalizer)
Register an action to execute upon the response immediately before sending it to the client.
|
default HttpUrlBuilder |
HttpUrlBuilder.params(Action<? super ImmutableMultimap.Builder<String,Object>> params)
Add some query params to the URL.
|
Modifier and Type | Method and Description |
---|---|
RequestSpec |
RequestSpec.body(Action<? super RequestSpec.Body> action)
Executes the given action with the
request body . |
Promise<ReceivedResponse> |
HttpClient.get(URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a GET HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec, but the method will be defaulted to a GET.
|
RequestSpec |
RequestSpec.headers(Action<? super MutableHeaders> action)
This method can be used to compose changes to the headers.
|
Promise<ReceivedResponse> |
HttpClient.post(URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a POST HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec, but the method will be defaulted to a POST.
|
Promise<ReceivedResponse> |
HttpClient.request(URI uri,
Action<? super RequestSpec> action)
An asynchronous method to do a HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec.
|
Promise<StreamedResponse> |
HttpClient.requestStream(URI uri,
Action<? super RequestSpec> requestConfigurer)
An asynchronous method to do a HTTP request, the URL and all details of the request are configured by the Action acting on the RequestSpec,
the received response content will be streamed.
|
void |
StreamedResponse.send(Response response,
Action<? super MutableHeaders> headerMutator)
Stream this received response out to the given server response.
|
RequestSpec.Body |
RequestSpec.Body.stream(Action<? super OutputStream> action)
Specifies the request body by writing to an output stream.
|
Modifier and Type | Method and Description |
---|---|
static Registry |
Registries.registry(Action<? super RegistrySpec> action)
Builds a registry from the given action.
|
default RegistryBuilder |
RegistryBuilder.with(Action<? super RegistrySpec> action) |
default RegistrySpec |
RegistrySpec.with(Action<? super RegistrySpec> action)
Executes the given action with
this . |
Modifier and Type | Method and Description |
---|---|
default Action<RegistrySpec> |
RenderableDecorator.register()
A registration action, typically used with
RegistrySpec.with(Action) . |
default Action<RegistrySpec> |
Renderer.register()
An action that registers this renderer with a registry.
|
Modifier and Type | Method and Description |
---|---|
ServerConfig.Builder |
ServerConfig.Builder.configureObjectMapper(Action<ObjectMapper> action) |
default RatpackServerSpec |
RatpackServerSpec.handlers(Action<? super Chain> handlers)
Sets the root handler to the chain specified by the given action.
|
static RatpackServer |
RatpackServer.of(Action<? super RatpackServerSpec> definition)
Creates a new, unstarted, Ratpack server from the given definition.
|
ServerConfig.Builder |
ServerConfig.Builder.onError(Action<? super Throwable> errorHandler) |
default RatpackServerSpec |
RatpackServerSpec.registryOf(Action<? super RegistrySpec> action)
Builds the user registry via the given spec action.
|
static void |
RatpackServer.start(Action<? super RatpackServerSpec> definition)
Convenience method to
define and RatpackServer.start() the server in one go. |
Modifier and Type | Method and Description |
---|---|
Promise<TransformablePublisher<Event<?>>> |
ServerSentEventStreamClient.request(URI uri,
Action<? super RequestSpec> action) |
static <T> ServerSentEvents |
ServerSentEvents.serverSentEvents(org.reactivestreams.Publisher<T> publisher,
Action<? super Event<T>> action)
Creates a new renderable object wrapping the event stream.
|
Modifier and Type | Method and Description |
---|---|
default TransformablePublisher<T> |
TransformablePublisher.gate(Action<? super Runnable> valveReceiver)
|
static <T> TransformablePublisher<T> |
Streams.gate(org.reactivestreams.Publisher<T> publisher,
Action<? super Runnable> valveReceiver)
Allows requests from the subscriber of the return publisher to be withheld from the given publisher until an externally defined moment.
|
default <O> WriteStream<O> |
WriteStream.itemMap(Action<? super O> itemMapper)
Creates a new write stream that passes error and complete signals on to this stream, but passes items to the given action.
|
default TransformablePublisher<T> |
TransformablePublisher.wiretap(Action<? super StreamEvent<? super T>> listener)
|
static <T> TransformablePublisher<T> |
Streams.wiretap(org.reactivestreams.Publisher<T> publisher,
Action<? super StreamEvent<? super T>> listener)
Allows listening to the events of the given publisher as they flow to subscribers.
|
Modifier and Type | Method and Description |
---|---|
static CloseableApplicationUnderTest |
ApplicationUnderTest.of(Class<?> mainClass,
Action<? super RegistrySpec> action) |
default void |
CloseableApplicationUnderTest.test(Action<? super TestHttpClient> action)
Provides the given action with a
test http client for this application, then closes this application. |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromHandlers(Action<? super Chain> action)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler chain.
|
static EmbeddedApp |
EmbeddedApp.fromServer(ServerConfig serverConfig,
Action<? super RatpackServerSpec> definition)
Creates an embedded application using the given server config, and server creating function.
|
static EmbeddedApp |
EmbeddedApp.of(Action<? super RatpackServerSpec> definition)
Creates an embedded application from the given function.
|
static EmbeddedApp |
EmbeddedApp.of(Path baseDir,
Action<? super RatpackServerSpec> definition) |
Modifier and Type | Method and Description |
---|---|
default <T> Promise<T> |
ExecHarness.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
default void |
ExecHarness.run(Action<? super ExecControl> action)
Initiates an execution and blocks until it completes.
|
void |
ExecHarness.run(Action<? super RegistrySpec> registry,
Action<? super ExecControl> action)
Initiates an execution and blocks until it completes.
|
void |
ExecHarness.run(Action<? super RegistrySpec> registry,
Action<? super ExecControl> action)
Initiates an execution and blocks until it completes.
|
static void |
ExecHarness.runSingle(Action<? super ExecControl> action)
Convenient form of
ExecHarness.run(Action) that creates and closes a harness for the run. |
static void |
ExecHarness.runSingle(Action<? super RegistrySpec> registry,
Action<? super ExecControl> action)
Convenient form of
ExecHarness.run(Action, Action) that creates and closes a harness for the run. |
static void |
ExecHarness.runSingle(Action<? super RegistrySpec> registry,
Action<? super ExecControl> action)
Convenient form of
ExecHarness.run(Action, Action) that creates and closes a harness for the run. |
<T> ExecResult<T> |
ExecHarness.yield(Action<? super RegistrySpec> registry,
Function<ExecControl,Promise<T>> func)
Synchronously returns a promised value.
|
static <T> ExecResult<T> |
ExecHarness.yieldSingle(Action<? super RegistrySpec> registry,
Function<ExecControl,Promise<T>> func)
Creates an exec harness,
executes the given function with it before closing it, then returning execution result. |
Modifier and Type | Method and Description |
---|---|
static HandlingResult |
RequestFixture.handle(Action<? super Chain> chainAction,
Action<? super RequestFixture> requestFixtureAction)
Unit test a
Handler chain. |
static HandlingResult |
RequestFixture.handle(Action<? super Chain> chainAction,
Action<? super RequestFixture> requestFixtureAction)
Unit test a
Handler chain. |
static HandlingResult |
RequestFixture.handle(Handler handler,
Action<? super RequestFixture> action)
Unit test a single
Handler . |
HandlingResult |
RequestFixture.handleChain(Action<? super Chain> chainAction)
Similar to
RequestFixture.handle(ratpack.handling.Handler) , but for testing a handler chain. |
RequestFixture |
RequestFixture.registry(Action<? super RegistrySpec> action)
Configures the context registry.
|
RequestFixture |
RequestFixture.serverConfig(Action<? super ServerConfig.Builder> action)
Configures the server config to have no base dir and given configuration.
|
RequestFixture |
RequestFixture.serverConfig(Path baseDir,
Action<? super ServerConfig.Builder> action)
Configures the server config to have the given base dir and given configuration.
|
Modifier and Type | Method and Description |
---|---|
TestHttpClient |
TestHttpClient.params(Action<? super ImmutableMultimap.Builder<String,Object>> params) |
TestHttpClient |
TestHttpClient.requestSpec(Action<? super RequestSpec> requestAction) |
static TestHttpClient |
TestHttpClient.testHttpClient(ApplicationUnderTest applicationUnderTest,
Action<? super RequestSpec> requestConfigurer)
A method to create an instance of the default implementation of TestHttpClient.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
Exceptions.uncheck(T input,
Action<T> action)
Executes the given action with the provided input argument, unchecking any exceptions it throws.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketConnector.connect(Action<? super WebSocketSpec<T>> specAction) |
WebSocketSpec<T> |
WebSocketSpec.onClose(Action<WebSocketClose<T>> action) |
WebSocketSpec<T> |
WebSocketSpec.onMessage(Action<WebSocketMessage<T>> action) |