| Package | Description |
|---|---|
| ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
| ratpack.handling |
The handling of application requests.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
GroovyByMethodSpec
A Groovy oriented multi-method handler builder.
|
| Modifier and Type | Method and Description |
|---|---|
ByMethodSpec |
ByMethodSpec.delete(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.delete(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.delete(Handler handler)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.get(Block block)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.get(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.get(Handler handler)
Inserts the handler to chain if the request has a HTTP method of GET.
|
ByMethodSpec |
ByMethodSpec.named(java.lang.String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName. |
ByMethodSpec |
ByMethodSpec.named(java.lang.String methodName,
java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of
methodName. |
ByMethodSpec |
ByMethodSpec.named(java.lang.String methodName,
Handler handler)
Inserts the handler to chain if the request has a HTTP method of
methodName. |
ByMethodSpec |
ByMethodSpec.options(Block block)
Defines the action to to take if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
ByMethodSpec.options(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
ByMethodSpec.options(Handler handler)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
ByMethodSpec.patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.patch(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.patch(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
ByMethodSpec |
ByMethodSpec.post(Block block)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.post(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.post(Handler handler)
Inserts the handler to chain if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec |
ByMethodSpec.put(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
ByMethodSpec |
ByMethodSpec.put(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Context.byMethod(Action<? super ByMethodSpec> action)
Respond to the request based on the request method.
|
static Handler |
Handlers.byMethod(Registry registry,
Action<? super ByMethodSpec> action)
Builds a multi method handler.
|