public interface GroovyChain extends Chain
The methods specific to this subclass create Handler
instances from closures and
add them to the underlying chain.
These methods are generally shortcuts for all(ratpack.handling.Handler)
on this underlying chain.
Modifier and Type | Method and Description |
---|---|
default GroovyChain |
all(Class<? extends Handler> handler) |
default GroovyChain |
all(Closure<?> handler)
Adds the given
Closure as a Handler to this GroovyChain . |
GroovyChain |
all(Handler handler)
Adds the given handler to this.
|
default Handler |
chain(Closure<?> closure)
Creates a handler from the given closure.
|
default GroovyChain |
delete(Class<? extends Handler> handler) |
default GroovyChain |
delete(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is DELETE and the path is at the current root. |
default GroovyChain |
delete(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is DELETE and the path is at the current root. |
default GroovyChain |
delete(String path,
Class<? extends Handler> handler) |
default GroovyChain |
delete(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is DELETE . |
default GroovyChain |
delete(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is DELETE . |
default GroovyChain |
files()
Chain.files(Action) , using the default config. |
default GroovyChain |
files(Action<? super FileHandlerSpec> config)
Adds a handler that serves files from the file system.
|
default GroovyChain |
files(Closure<?> closure) |
default GroovyChain |
fileSystem(String path,
Action<? super Chain> action)
Adds a handler to this chain that changes the
FileSystemBinding for the given handler chain. |
default GroovyChain |
fileSystem(String path,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
fileSystem(String path,
Closure<?> handlers)
Creates a
List of Handler from the given Closure and adds a Handler to this GroovyChain that
changes the FileSystemBinding for the Handler list. |
static GroovyChain |
from(Chain chain)
Creates a Groovy chain wrapper over a chain instance.
|
default GroovyChain |
get(Class<? extends Handler> handler) |
default GroovyChain |
get(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is GET and the path is at the current root. |
default GroovyChain |
get(Handler handler)
Adds a handler that delegates to the given handler
if the
request HTTPMethod is GET and the path is at the
current root. |
default GroovyChain |
get(String path,
Class<? extends Handler> handler) |
default GroovyChain |
get(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is GET . |
default GroovyChain |
get(String path,
Handler handler)
Adds a handler that delegates to the given handler
if the relative
path matches the given path and the request
HTTPMethod is GET . |
default 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. |
default GroovyChain |
host(String hostName,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
host(String hostName,
Closure<?> handler)
If the request has a
Host header that matches the given host name exactly, handling will be delegated to the chain defined by the given closure. |
default GroovyChain |
insert(Action<? super Chain> action)
Inserts the given nested handler chain.
|
default GroovyChain |
insert(Class<? extends Action<? super Chain>> action) |
default GroovyChain |
insert(Closure<?> closure)
Inserts the given nested handler chain.
|
default GroovyChain |
patch(Class<? extends Handler> handler) |
default GroovyChain |
patch(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is PATCH and the path is at the current root. |
default GroovyChain |
patch(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is PATCH and the path is at the current root. |
default GroovyChain |
patch(String path,
Class<? extends Handler> handler) |
default GroovyChain |
patch(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is PATCH . |
default GroovyChain |
patch(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is PATCH . |
default GroovyChain |
path(Class<? extends Handler> handler) |
default GroovyChain |
path(Closure<?> handler) |
default GroovyChain |
path(Handler handler) |
default GroovyChain |
path(String path,
Class<? extends Handler> handler) |
default GroovyChain |
path(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path exactly. |
default GroovyChain |
path(String path,
Handler handler)
Adds a handler that delegates to the given handler if the relative
path
matches the given path exactly. |
default GroovyChain |
post(Class<? extends Handler> handler) |
default GroovyChain |
post(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is POST and the path is at the current root. |
default GroovyChain |
post(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is POST and the path is at the current root. |
default GroovyChain |
post(String path,
Class<? extends Handler> handler) |
default GroovyChain |
post(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is POST . |
default GroovyChain |
post(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is POST . |
default 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 . |
default GroovyChain |
prefix(String prefix,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
prefix(String prefix,
Closure<?> chain)
Creates a
List of Handler from the given Closure and adds a Handler to
this GroovyChain that delegates to the Handler list if the relative path starts with the given
prefix . |
default GroovyChain |
put(Class<? extends Handler> handler) |
default GroovyChain |
put(Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler
if the request HTTPMethod is PUT and the path is at the current root. |
default GroovyChain |
put(Handler handler)
Adds a handler that delegates to the given handler if
the
request HTTPMethod is PUT and the path is at the current root. |
default GroovyChain |
put(String path,
Class<? extends Handler> handler) |
default GroovyChain |
put(String path,
Closure<?> handler)
Adds a
Handler to this GroovyChain that delegates to the given Closure as a Handler if the
relative path matches the given path and the request HTTPMethod is PUT . |
default GroovyChain |
put(String path,
Handler handler)
Adds a handler that delegates to the given handler if
the relative
path matches the given path and the request HTTPMethod
is PUT . |
default GroovyChain |
redirect(int code,
String location)
Sends an HTTP redirect to the specified location.
|
default GroovyChain |
register(Action<? super RegistrySpec> action)
Builds a new registry via the given action, then registers it via
Chain.register(Registry) . |
default 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 |
register(Action<? super RegistrySpec> registryAction,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
register(Action<? super RegistrySpec> registryAction,
Closure<?> handler) |
default GroovyChain |
register(Closure<?> closure) |
default GroovyChain |
register(Registry registry)
Makes the contents of the given registry available for downstream handlers of the same nesting level.
|
default 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...) . |
default GroovyChain |
register(Registry registry,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
register(Registry registry,
Closure<?> handlers) |
default GroovyChain |
route(Closure<?> test,
Action<? super Chain> chain) |
default GroovyChain |
route(Closure<?> test,
Closure<?> handlers) |
default GroovyChain |
route(Predicate<? super Context> test,
Action<? super Chain> action) |
default GroovyChain |
route(Predicate<? super Context> test,
Class<? extends Action<? super Chain>> action) |
default GroovyChain |
route(Predicate<? super Context> test,
Closure<?> handlers) |
chain, chain, getRegistry, getServerConfig
static GroovyChain from(Chain chain)
chain
- a chain instancedefault GroovyChain all(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Closure
as a Handler
to this GroovyChain
.handler
- the Closure
to addGroovyChain
GroovyChain all(Handler handler)
default GroovyChain all(Class<? extends Handler> handler)
default Handler chain(@DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> closure) throws Exception
closure
- a chain definitionException
- any thrown by closure
default GroovyChain delete(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is DELETE
.
See delete(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match onhandler
- the handler to delegate toGroovyChain
default GroovyChain delete(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is DELETE
and the path
is at the current root.
See delete(ratpack.handling.Handler)
for more details.
handler
- the handler to delegate toGroovyChain
default GroovyChain delete(String path, Handler handler)
path
matches the given path
and the request
HTTPMethod
is DELETE
.delete
in interface Chain
path
- the relative path to match onhandler
- the handler to delegate toChain.get(String, Handler)
,
Chain.post(String, Handler)
,
Chain.put(String, Handler)
,
Chain.patch(String, Handler)
,
Chain.path(String, Handler)
default GroovyChain delete(String path, Class<? extends Handler> handler)
default GroovyChain delete(Handler handler)
request
HTTPMethod
is DELETE
and the path
is at the current root.delete
in interface Chain
handler
- the handler to delegate toChain.get(Handler)
,
Chain.post(Handler)
,
Chain.put(Handler)
,
Chain.patch(Handler)
default GroovyChain delete(Class<? extends Handler> handler)
default GroovyChain fileSystem(String path, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handlers) throws Exception
List
of Handler
from the given Closure
and adds a Handler
to this GroovyChain
that
changes the FileSystemBinding
for the Handler
list.
See fileSystem(String, ratpack.func.Action)
for more details.
path
- the relative path
to the new file system binding pointhandlers
- the definition of the handler chainGroovyChain
Exception
- any thrown by closure
default GroovyChain fileSystem(String path, Action<? super Chain> action) throws Exception
FileSystemBinding
for the given handler chain.fileSystem
in interface Chain
path
- the relative path to the new file system binding pointaction
- the definition of the all chainException
- any thrown by action
default GroovyChain fileSystem(String path, Class<? extends Action<? super Chain>> action) throws Exception
fileSystem
in interface Chain
Exception
default GroovyChain files(Action<? super FileHandlerSpec> config) throws Exception
The given action configures how and what files will be served.
The handler binds to a request path
and a directory
within the current filesystem binding.
The portion of the request path past the path binding identifies the target file within the directory.
import ratpack.test.embed.BaseDirBuilder;
import ratpack.test.embed.EmbeddedApp;
import static org.junit.Assert.assertEquals;
public class Example {
public static void main(String... args) throws Exception {
BaseDirBuilder.tmpDir().build(
b -> {
b.file("public/some.text", "foo");
b.file("public/index.html", "bar");
},
baseDir ->
EmbeddedApp.fromHandlers(baseDir, c -> c
.files(f -> f.dir("public").indexFiles("index.html"))
).test(httpClient -> {
assertEquals("foo", httpClient.getText("some.text"));
assertEquals("bar", httpClient.getText());
assertEquals(404, httpClient.get("no-file-here").getStatusCode());
})
);
}
}
files
in interface Chain
config
- the file handler configurationthis
Exception
- any thrown by config
Handlers.files(ServerConfig, Action)
,
FileHandlerSpec
default GroovyChain files()
Chain
Chain.files(Action)
, using the default config.default GroovyChain files(@DelegatesTo(value=FileHandlerSpec.class,strategy=1) Closure<?> closure) throws Exception
Exception
default GroovyChain get(String path, Handler handler)
path
matches the given path
and the request
HTTPMethod
is GET
.
get
in interface Chain
path
- the relative path to match onhandler
- the handler to delegate toChain.post(String, Handler)
,
Chain.put(String, Handler)
,
Chain.patch(String, Handler)
,
Chain.delete(String, Handler)
,
Chain.path(String, Handler)
default GroovyChain get(String path, Class<? extends Handler> handler)
default GroovyChain get(Handler handler)
request
HTTPMethod
is GET
and the path
is at the
current root.get
in interface Chain
handler
- the handler to delegate toChain.post(Handler)
,
Chain.put(Handler)
,
Chain.patch(Handler)
,
Chain.delete(Handler)
default GroovyChain get(Class<? extends Handler> handler)
default GroovyChain get(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is GET
.
See get(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match onhandler
- the handler to delegate toGroovyChain
default GroovyChain get(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is GET
and the path
is at the current root.
See get(ratpack.handling.Handler)
for more details.
handler
- the handler to delegate toGroovyChain
default GroovyChain host(String hostName, Action<? super Chain> action) throws Exception
Host
header that matches the given value exactly.
chain. host("foo.com", new Action<Chain>() { public void execute(Chain hostChain) { hostChain.all(new Handler() { public void handle(Context context) { context.getResponse().send("Host Handler"); } }); } });
default GroovyChain host(String hostName, Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain host(String hostName, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handler) throws Exception
Host
header that matches the given host name exactly, handling will be delegated to the chain defined by the given closure.hostName
- the name of the HTTP Header to match onhandler
- the handler to delegate toGroovyChain
Exception
- any thrown by closure
host(String, ratpack.func.Action)
default GroovyChain insert(Action<? super Chain> action) throws Exception
Shorter form of Chain.all(Handler)
handler}(chain
(action
).
default GroovyChain insert(Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain insert(@DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> closure) throws Exception
Shorter form of all(Handler)
handler}(chain
(closure
).
closure
- the handler chain to insertException
- any thrown by closure
default GroovyChain patch(String path, Handler handler)
path
matches the given path
and the request
HTTPMethod
is PATCH
.patch
in interface Chain
path
- the relative path to match onhandler
- the handler to delegate toChain.get(String, Handler)
,
Chain.post(String, Handler)
,
Chain.put(String, Handler)
,
Chain.delete(String, Handler)
,
Chain.path(String, Handler)
default GroovyChain patch(String path, Class<? extends Handler> handler)
default GroovyChain patch(Handler handler)
request
HTTPMethod
is PATCH
and the path
is at the current root.patch
in interface Chain
handler
- the handler to delegate toChain.get(Handler)
,
Chain.post(Handler)
,
Chain.put(Handler)
,
Chain.delete(Handler)
default GroovyChain patch(Class<? extends Handler> handler)
default GroovyChain patch(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is PATCH
.
See put(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match onhandler
- the handler to delegate toGroovyChain
default GroovyChain patch(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is PATCH
and the path
is at the current root.
See put(ratpack.handling.Handler)
for more details.
handler
- the handler to delegate toGroovyChain
default GroovyChain path(String path, Handler handler)
path
matches the given path
exactly.
Nesting path
handlers will not work due to the exact matching, use a combination of path
and prefix
instead. See Chain.prefix(String, ratpack.func.Action)
for details.
// this will not work path("person/:id") { path("child/:childId") { // a request of /person/2/child/1 will not get passed the first all as it will try // to match "person/2/child/1" with "person/2" which does not match } // this will work prefix("person/:id") { path("child/:childId") { // a request of /person/2/child/1 will work this time } }
See Handlers.path(String, Handler)
for the details on how path
is interpreted.
path
in interface Chain
path
- the relative path to match exactly onhandler
- the handler to delegate toChain.post(String, Handler)
,
Chain.get(String, Handler)
,
Chain.put(String, Handler)
,
Chain.patch(String, Handler)
,
Chain.delete(String, Handler)
default GroovyChain path(Handler handler)
default GroovyChain path(String path, Class<? extends Handler> handler)
default GroovyChain path(Class<? extends Handler> handler)
default GroovyChain path(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
exactly.
See path(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match exactly onhandler
- the handler to delegate toGroovyChain
default GroovyChain path(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
default GroovyChain post(String path, Handler handler)
path
matches the given path
and the request
HTTPMethod
is POST
.
post
in interface Chain
path
- the relative path to match onhandler
- the handler to delegate toChain.get(String, Handler)
,
Chain.put(String, Handler)
,
Chain.patch(String, Handler)
,
Chain.delete(String, Handler)
,
Chain.path(String, Handler)
default GroovyChain post(String path, Class<? extends Handler> handler)
default GroovyChain post(Handler handler)
request
HTTPMethod
is POST
and the path
is at the current root.
post
in interface Chain
handler
- the handler to delegate toChain.get(Handler)
,
Chain.put(Handler)
,
Chain.patch(Handler)
,
Chain.delete(Handler)
default GroovyChain post(Class<? extends Handler> handler)
default GroovyChain post(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is POST
.
See post(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match onhandler
- the handler to delegate toGroovyChain
default GroovyChain post(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is POST
and the path
is at the current root.
See post(ratpack.handling.Handler)
for more details.
handler
- the handler to delegate toGroovyChain
default GroovyChain prefix(String prefix, Action<? super Chain> action) throws Exception
prefix
.
All path based handlers become relative to the given prefix
.
chain .prefix("person/:id", new Action<Chain>() { public void execute(Chain personChain) throws Exception { personChain .get("info", new Handler() { public void handle(Context context) { // e.g. /person/2/info } }) .post("save", new Handler() { public void handle(Context context) { // e.g. /person/2/save } }) .prefix("child/:childId", new Action<Chain>() { public void execute(Chain childChain) { childChain .get("info", new Handler() { public void handle(Context context) { // e.g. /person/2/child/1/info } }); } }); } });
See Handlers.prefix(String, Handler)
for format details on the prefix
string.
default GroovyChain prefix(String prefix, Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain prefix(String prefix, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> chain) throws Exception
List
of Handler
from the given Closure
and adds a Handler
to
this GroovyChain
that delegates to the Handler
list if the relative path starts with the given
prefix
.
See Chain.prefix(String, ratpack.func.Action)
for more details.
prefix
- the relative path to match onchain
- the definition of the chain to delegate toGroovyChain
Exception
- any exception thrown by the given closuredefault GroovyChain put(String path, Handler handler)
path
matches the given path
and the request
HTTPMethod
is PUT
.put
in interface Chain
path
- the relative path to match onhandler
- the handler to delegate toChain.get(String, Handler)
,
Chain.post(String, Handler)
,
Chain.patch(String, Handler)
,
Chain.delete(String, Handler)
,
Chain.path(String, Handler)
default GroovyChain put(String path, Class<? extends Handler> handler)
default GroovyChain put(Handler handler)
request
HTTPMethod
is PUT
and the path
is at the current root.put
in interface Chain
handler
- the handler to delegate toChain.get(Handler)
,
Chain.post(Handler)
,
Chain.patch(Handler)
,
Chain.delete(Handler)
default GroovyChain put(Class<? extends Handler> handler)
default GroovyChain put(String path, @DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is PUT
.
See put(String, ratpack.handling.Handler)
for more details.
path
- the relative path to match onhandler
- the handler to delegate toGroovyChain
default GroovyChain put(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> handler)
Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is PUT
and the path
is at the current root.
See put(ratpack.handling.Handler)
for more details.
handler
- the handler to delegate toGroovyChain
default GroovyChain redirect(int code, String location)
The handler to add is created via Handlers.redirect(int, String)
.
redirect
in interface Chain
code
- the 3XX HTTP status code.location
- the URL to set in the Location response headerHandlers.redirect(int, String)
default GroovyChain register(Registry registry)
The registry is inserted via the Context.next(Registry)
method.
default GroovyChain register(Action<? super RegistrySpec> action) throws Exception
Chain.register(Registry)
.default GroovyChain register(Registry registry, Action<? super Chain> action) throws Exception
Context.insert(ratpack.registry.Registry, Handler...)
.default GroovyChain register(Registry registry, Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain register(Action<? super RegistrySpec> registryAction, Action<? super Chain> chainAction) throws Exception
Context.insert(ratpack.registry.Registry, Handler...)
.default GroovyChain register(Action<? super RegistrySpec> registryAction, Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain register(Action<? super RegistrySpec> registryAction, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handler) throws Exception
Exception
default GroovyChain register(Registry registry, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handlers) throws Exception
Exception
default GroovyChain register(@DelegatesTo(value=RegistrySpec.class,strategy=1) Closure<?> closure) throws Exception
Exception
default GroovyChain route(Predicate<? super Context> test, Action<? super Chain> action) throws Exception
default GroovyChain route(Predicate<? super Context> test, Class<? extends Action<? super Chain>> action) throws Exception
default GroovyChain route(Predicate<? super Context> test, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handlers) throws Exception
Exception
default GroovyChain route(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> test, @DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> handlers) throws Exception
Exception
default GroovyChain route(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> test, Action<? super Chain> chain) throws Exception
Exception