Package ratpack.groovy.handling
Interface GroovyByMethodSpec
-
- All Superinterfaces:
ratpack.handling.ByMethodSpec
public interface GroovyByMethodSpec extends ratpack.handling.ByMethodSpec
A Groovy oriented multi-method handler builder.- Since:
- 1.5
- See Also:
GroovyContext.byMethod(Closure)
,ByMethodSpec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GroovyByMethodSpec
delete(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of DELETE.GroovyByMethodSpec
delete(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
delete(ratpack.func.Block block)
GroovyByMethodSpec
delete(ratpack.handling.Handler handler)
GroovyByMethodSpec
get(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of GET.GroovyByMethodSpec
get(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
get(ratpack.func.Block block)
GroovyByMethodSpec
get(ratpack.handling.Handler handler)
GroovyByMethodSpec
named(java.lang.String methodName, Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method ofmethodName
.GroovyByMethodSpec
named(java.lang.String methodName, java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
named(java.lang.String methodName, ratpack.func.Block block)
GroovyByMethodSpec
named(java.lang.String methodName, ratpack.handling.Handler handler)
GroovyByMethodSpec
options(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.GroovyByMethodSpec
options(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
options(ratpack.func.Block block)
GroovyByMethodSpec
options(ratpack.handling.Handler handler)
GroovyByMethodSpec
patch(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PATCH.GroovyByMethodSpec
patch(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
patch(ratpack.func.Block block)
GroovyByMethodSpec
patch(ratpack.handling.Handler handler)
GroovyByMethodSpec
post(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of POST.GroovyByMethodSpec
post(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
post(ratpack.func.Block block)
GroovyByMethodSpec
post(ratpack.handling.Handler handler)
GroovyByMethodSpec
put(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PUT.GroovyByMethodSpec
put(java.lang.Class<? extends ratpack.handling.Handler> clazz)
GroovyByMethodSpec
put(ratpack.func.Block block)
GroovyByMethodSpec
put(ratpack.handling.Handler handler)
-
-
-
Method Detail
-
get
GroovyByMethodSpec get(ratpack.func.Block block)
- Specified by:
get
in interfaceratpack.handling.ByMethodSpec
-
get
GroovyByMethodSpec get(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
get
in interfaceratpack.handling.ByMethodSpec
-
get
GroovyByMethodSpec get(ratpack.handling.Handler handler)
- Specified by:
get
in interfaceratpack.handling.ByMethodSpec
-
post
GroovyByMethodSpec post(ratpack.func.Block block)
- Specified by:
post
in interfaceratpack.handling.ByMethodSpec
-
post
GroovyByMethodSpec post(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
post
in interfaceratpack.handling.ByMethodSpec
-
post
GroovyByMethodSpec post(ratpack.handling.Handler handler)
- Specified by:
post
in interfaceratpack.handling.ByMethodSpec
-
put
GroovyByMethodSpec put(ratpack.func.Block block)
- Specified by:
put
in interfaceratpack.handling.ByMethodSpec
-
put
GroovyByMethodSpec put(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
put
in interfaceratpack.handling.ByMethodSpec
-
put
GroovyByMethodSpec put(ratpack.handling.Handler handler)
- Specified by:
put
in interfaceratpack.handling.ByMethodSpec
-
patch
GroovyByMethodSpec patch(ratpack.func.Block block)
- Specified by:
patch
in interfaceratpack.handling.ByMethodSpec
-
patch
GroovyByMethodSpec patch(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
patch
in interfaceratpack.handling.ByMethodSpec
-
patch
GroovyByMethodSpec patch(ratpack.handling.Handler handler)
- Specified by:
patch
in interfaceratpack.handling.ByMethodSpec
-
options
GroovyByMethodSpec options(ratpack.func.Block block)
- Specified by:
options
in interfaceratpack.handling.ByMethodSpec
-
options
GroovyByMethodSpec options(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
options
in interfaceratpack.handling.ByMethodSpec
-
options
GroovyByMethodSpec options(ratpack.handling.Handler handler)
- Specified by:
options
in interfaceratpack.handling.ByMethodSpec
-
delete
GroovyByMethodSpec delete(ratpack.func.Block block)
- Specified by:
delete
in interfaceratpack.handling.ByMethodSpec
-
delete
GroovyByMethodSpec delete(java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
delete
in interfaceratpack.handling.ByMethodSpec
-
delete
GroovyByMethodSpec delete(ratpack.handling.Handler handler)
- Specified by:
delete
in interfaceratpack.handling.ByMethodSpec
-
named
GroovyByMethodSpec named(java.lang.String methodName, ratpack.func.Block block)
- Specified by:
named
in interfaceratpack.handling.ByMethodSpec
-
named
GroovyByMethodSpec named(java.lang.String methodName, java.lang.Class<? extends ratpack.handling.Handler> clazz)
- Specified by:
named
in interfaceratpack.handling.ByMethodSpec
-
named
GroovyByMethodSpec named(java.lang.String methodName, ratpack.handling.Handler handler)
- Specified by:
named
in interfaceratpack.handling.ByMethodSpec
-
get
GroovyByMethodSpec get(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of GET.- Parameters:
closure
- a handler closure- Returns:
- this
-
post
GroovyByMethodSpec post(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of POST.- Parameters:
closure
- a handler closure- Returns:
- this
-
put
GroovyByMethodSpec put(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PUT.- Parameters:
closure
- a handler closure- Returns:
- this
-
patch
GroovyByMethodSpec patch(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PATCH.- Parameters:
closure
- a handler closure- Returns:
- this
-
options
GroovyByMethodSpec options(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.- Parameters:
closure
- a handler closure- Returns:
- this
-
delete
GroovyByMethodSpec delete(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of DELETE.- Parameters:
closure
- a handler closure- Returns:
- this
-
named
GroovyByMethodSpec named(@DelegatesTo(value=GroovyContext.class,strategy=1) java.lang.String methodName, Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method ofmethodName
.- Parameters:
closure
- a handler closure- Returns:
- this
-
-