Package | Description |
---|---|
ratpack.groovy.handling | |
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyChain
A Groovy oriented handler chain builder DSL.
|
Modifier and Type | Method and Description |
---|---|
GroovyChain |
GroovyChain.fileSystem(String path,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.prefix(String prefix,
Action<? super Chain> action) |
<T> GroovyChain |
GroovyChain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
GroovyChain |
GroovyChain.register(Object service,
Action<? super Chain> action) |
Modifier and Type | Method and Description |
---|---|
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,
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.
|
Modifier and Type | Method and Description |
---|---|
Chain |
Chain.assets(String path,
String... indexFiles)
Adds a
Handler to this GroovyChain that serves static assets at the given file system path,
relative to the contextual file system binding. |
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,
Action<? super Chain> action) |
Chain |
Chain.fileSystem(String path,
Handler handler)
|
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. |
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 . |
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,
Action<? super Chain> action) |
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 . |
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,
Action<? super Chain> action) |
<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. |
Chain |
Chain.register(Object service,
Action<? super Chain> action) |
Chain |
Chain.register(Object service,
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 |
Chain.chain(Action<? super Chain> action) |
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.
|
Chain |
Chain.fileSystem(String path,
Action<? super Chain> action) |
Chain |
Chain.prefix(String prefix,
Action<? super Chain> action) |
<T> Chain |
Chain.register(Class<? super T> type,
T service,
Action<? super Chain> action) |
Chain |
Chain.register(Object service,
Action<? super Chain> action) |