Package | Description |
---|---|
ratpack.codahale.metrics | |
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.handling | |
ratpack.groovy.launch | |
ratpack.groovy.test | |
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.launch |
Classes used to bootstrap a Ratpack application.
|
ratpack.remote |
Integration with Groovy Remote Control.
|
ratpack.session | |
ratpack.session.store |
Session scoped storage.
|
ratpack.test | |
ratpack.test.handling |
Modifier and Type | Method and Description |
---|---|
Handler |
CodaHaleMetricsModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
Handler |
CodaHaleMetricsModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Closure<?> closure)
Builds a handler chain, with no backing registry.
|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
static Handler |
Groovy.groovyHandler(Closure<?> closure) |
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyByContentHandler |
interface |
GroovyByMethodHandler
A Groovy specific subclass of
ByMethodHandler that makes using closures more convenient. |
Modifier and Type | Class and Description |
---|---|
class |
GroovyHandler |
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.delete(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is DELETE and the path is at the current root. |
GroovyChain |
GroovyChain.delete(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is DELETE . |
GroovyChain |
GroovyChain.fileSystem(String path,
Handler handler)
|
GroovyChain |
GroovyChain.get(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler
if the request HTTPMethod is GET and the path is at the
current root. |
GroovyChain |
GroovyChain.get(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler
if the relative path matches the given path and the request
HTTPMethod is GET . |
GroovyChain |
GroovyChain.handler(Handler handler)
Adds the given
Handler to this GroovyChain . |
GroovyChain |
GroovyChain.handler(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if the relative path
matches the given path exactly. |
GroovyChain |
GroovyChain.header(String headerName,
String headerValue,
Handler handler)
Adds a
Handler to the chain that delegates to the given handler if the request has a header with the given name and a its value matches the given value exactly. |
GroovyChain |
GroovyChain.patch(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is PATCH and the path is at the current root. |
GroovyChain |
GroovyChain.patch(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is PATCH . |
GroovyChain |
GroovyChain.post(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is POST and the path is at the current root. |
GroovyChain |
GroovyChain.post(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is POST . |
GroovyChain |
GroovyChain.prefix(String prefix,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given handlers if the
relative path starts with the given prefix . |
GroovyChain |
GroovyChain.put(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is PUT and the path is at the current root. |
GroovyChain |
GroovyChain.put(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is PUT . |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T object,
Handler handler)
Adds a
Handler to this GroovyChain that inserts the given handlers with the given service addition. |
GroovyChain |
GroovyChain.register(Object object,
Handler handler)
Adds a
Handler to this GroovyChain that inserts the given handler with the given service addition. |
Modifier and Type | Method and Description |
---|---|
Handler |
GroovyClosureHandlerFactory.create(LaunchConfig launchConfig) |
Handler |
GroovyScriptFileHandlerFactory.create(LaunchConfig launchConfig) |
Modifier and Type | Method and Description |
---|---|
static Invocation |
GroovyUnitTest.invoke(Handler handler,
Closure<?> builder)
Unit test a
Handler . |
Modifier and Type | Method and Description |
---|---|
protected Transformer<? super Injector,? extends Handler> |
ClosureBackedEmbeddedApplication.createHandlerTransformer(LaunchConfig launchConfig)
Provides the object that, given the
Injector created by the module definition, creates the application handler. |
Modifier and Type | Method and Description |
---|---|
Handler |
GuiceBackedHandlerFactory.create(Action<? super ModuleRegistry> modulesAction,
Transformer<? super Module,? extends Injector> moduleTransformer,
Transformer<? super Injector,? extends Handler> handler) |
Handler |
HandlerDecoratingModule.decorate(Injector injector,
Handler handler)
Decorate the given handler with any global logic.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
Modifier and Type | Method and Description |
---|---|
Handler |
HandlerDecoratingModule.decorate(Injector injector,
Handler handler)
Decorate the given handler with any global logic.
|
Modifier and Type | Method and Description |
---|---|
Handler |
GuiceBackedHandlerFactory.create(Action<? super ModuleRegistry> modulesAction,
Transformer<? super Module,? extends Injector> moduleTransformer,
Transformer<? super Injector,? extends Handler> handler) |
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ByContentHandler
A buildable strategy for responding based on the HTTP "Accepts" request header.
|
interface |
ByMethodHandler
A buildable strategy for processing an exchange based on HTTP method.
|
Modifier and Type | Class and Description |
---|---|
class |
ServiceUsingHandler
Convenience handler super class that provides syntactic sugar for accessing contextual objects.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.assets(String path,
List<String> indexFiles)
A handler that serves static assets at the given file system path, relative to the contextual file system binding.
|
Handler |
Chain.chain(Action<? super Chain> action) |
static Handler |
Handlers.chain(Handler... handlers)
Creates a handler chain from the given handlers.
|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Action<? super Chain> action)
Builds a handler chain, with no backing registry.
|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
static Handler |
Handlers.chain(List<? extends Handler> handlers)
Creates a handler chain from the given handlers.
|
static Handler |
Handlers.delete()
A handler that delegates to the next handler if the request is DELETE, otherwise raises a 405 client error.
|
static Handler |
Handlers.fileSystem(String path,
Handler handler)
A handlers that changes the
FileSystemBinding for the given handlers. |
static Handler |
Handlers.get()
A handler that delegates to the next handler if the request is GET, otherwise raises a 405 client error.
|
static Handler |
Handlers.header(String headerName,
String headerValue,
Handler handler)
Creates a handler that delegates to the given handler if the
request has a HTTPHeader with the
given name and a it's value matches the given value exactly. |
static Handler |
Handlers.next()
A handler that simply delegates to the next handler.
|
static Handler |
Handlers.patch()
A handler that delegates to the next handler if the request is PATCH, otherwise raises a 405 client error.
|
static Handler |
Handlers.path(PathBinder pathBinder,
Handler handler)
Creates a handler that delegates to the given handlers if the request can be bound by the given path binder.
|
static Handler |
Handlers.path(String path,
Handler handler)
Creates a handler that delegates to the given handlers if the request matches the given path exactly.
|
static Handler |
Handlers.post()
A handler that delegates to the next handler if the request is POST, otherwise raises a 405 client error.
|
static Handler |
Handlers.prefix(String prefix,
Handler handler)
Creates a handler that delegates to the given handlers if the request path starts with the given prefix.
|
static Handler |
Handlers.put()
A handler that delegates to the next handler if the request is PUT, otherwise raises a 405 client error.
|
static <T> Handler |
Handlers.register(Class<? super T> type,
T object,
Handler handler)
Creates a handler that inserts the handler chain defined by the builder, with the given service addition.
|
static <T> Handler |
Handlers.register(T object,
Handler handler)
Creates a handler that inserts the handler chain defined by the builder, with the given service addition.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(Handler... handlers)
Creates a handler chain from the given handlers.
|
Chain |
Chain.delete(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is DELETE and the path is at the current root. |
Chain |
Chain.delete(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is DELETE . |
Chain |
Chain.fileSystem(String path,
Handler handler)
|
static Handler |
Handlers.fileSystem(String path,
Handler handler)
A handlers that changes the
FileSystemBinding for the given handlers. |
Chain |
Chain.get(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler
if the request HTTPMethod is GET and the path is at the
current root. |
Chain |
Chain.get(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler
if the relative path matches the given path and the request
HTTPMethod is GET . |
Chain |
Chain.handler(Handler handler)
Adds the given
Handler to this GroovyChain . |
Chain |
Chain.handler(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if the relative path
matches the given path exactly. |
Chain |
Chain.header(String headerName,
String headerValue,
Handler handler)
Adds a
Handler to the chain that delegates to the given handler if the request has a header with the given name and a its value matches the given value exactly. |
static Handler |
Handlers.header(String headerName,
String headerValue,
Handler handler)
Creates a handler that delegates to the given handler if the
request has a HTTPHeader with the
given name and a it's value matches the given value exactly. |
<P,T extends P> |
Context.insert(Class<P> publicType,
T implementation,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given object made available, then delegates to the first.
|
<T> void |
Context.insert(Class<T> publicType,
Factory<? extends T> factory,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given object created by the factory made available, then delegates to the first.
|
void |
Context.insert(Handler... handlers)
Inserts some handlers into the pipeline, then delegates to the first.
|
void |
Context.insert(Object object,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the the given object added to the service, then delegates to the first.
|
void |
Context.insert(Registry registry,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.
|
Chain |
Chain.patch(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is PATCH and the path is at the current root. |
Chain |
Chain.patch(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is PATCH . |
static Handler |
Handlers.path(PathBinder pathBinder,
Handler handler)
Creates a handler that delegates to the given handlers if the request can be bound by the given path binder.
|
static Handler |
Handlers.path(String path,
Handler handler)
Creates a handler that delegates to the given handlers if the request matches the given path exactly.
|
Chain |
Chain.post(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is POST and the path is at the current root. |
Chain |
Chain.post(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is POST . |
Chain |
Chain.prefix(String prefix,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given handlers if the
relative path starts with the given prefix . |
static Handler |
Handlers.prefix(String prefix,
Handler handler)
Creates a handler that delegates to the given handlers if the request path starts with the given prefix.
|
Chain |
Chain.put(Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the request HTTPMethod is PUT and the path is at the current root. |
Chain |
Chain.put(String path,
Handler handler)
Adds a
Handler to this GroovyChain that delegates to the given Handler if
the relative path matches the given path and the request HTTPMethod
is PUT . |
<T> Chain |
Chain.register(Class<? super T> type,
T service,
Handler handler)
Adds a
Handler to this GroovyChain that inserts the given handlers with the given service addition. |
static <T> Handler |
Handlers.register(Class<? super T> type,
T object,
Handler handler)
Creates a handler that inserts the handler chain defined by the builder, with the given service addition.
|
Chain |
Chain.register(Object service,
Handler handler)
Adds a
Handler to this GroovyChain that inserts the given handler with the given service addition. |
static <T> Handler |
Handlers.register(T object,
Handler handler)
Creates a handler that inserts the handler chain defined by the builder, with the given service addition.
|
void |
Context.respond(Handler handler)
Convenience method for delegating to a single handler.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(List<? extends Handler> handlers)
Creates a handler chain from the given handlers.
|
Modifier and Type | Method and Description |
---|---|
Handler |
HandlerFactory.create(LaunchConfig launchConfig)
Creates a handler from the given launch config.
|
Modifier and Type | Method and Description |
---|---|
Handler |
RemoteControlModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
Handler |
RemoteControlModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
Handler |
SessionModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
Handler |
SessionModule.decorate(Injector injector,
Handler handler) |
Modifier and Type | Method and Description |
---|---|
Handler |
MapSessionsModule.decorate(Injector injector,
Handler handler)
Makes
SessionStorage available in the exchange service. |
Modifier and Type | Method and Description |
---|---|
Handler |
MapSessionsModule.decorate(Injector injector,
Handler handler)
Makes
SessionStorage available in the exchange service. |
Modifier and Type | Method and Description |
---|---|
static Invocation |
UnitTest.invoke(Handler handler,
Action<? super InvocationBuilder> action)
Unit test a
Handler . |
Modifier and Type | Method and Description |
---|---|
Invocation |
InvocationBuilder.invoke(Handler handler) |