public interface GroovyByMethodSpec extends ByMethodSpec
GroovyContext.byMethod(Closure)
,
ByMethodSpec
Modifier and Type | Method and Description |
---|---|
GroovyByMethodSpec |
delete(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.
|
GroovyByMethodSpec |
delete(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
GroovyByMethodSpec |
delete(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
GroovyByMethodSpec |
delete(Handler handler)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
GroovyByMethodSpec |
get(Block block)
Defines the action to to take if the request has a HTTP method of GET.
|
GroovyByMethodSpec |
get(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of GET.
|
GroovyByMethodSpec |
get(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of GET.
|
GroovyByMethodSpec |
get(Handler handler)
Inserts the handler to chain if the request has a HTTP method of GET.
|
GroovyByMethodSpec |
named(String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName . |
GroovyByMethodSpec |
named(String methodName,
Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of
methodName . |
GroovyByMethodSpec |
named(String methodName,
Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of
methodName . |
GroovyByMethodSpec |
named(String methodName,
Handler handler)
Inserts the handler to chain if the request has a HTTP method of
methodName . |
GroovyByMethodSpec |
options(Block block)
Defines the action to to take if the request has a HTTP method of OPTIONS.
|
GroovyByMethodSpec |
options(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
GroovyByMethodSpec |
options(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
GroovyByMethodSpec |
options(Handler handler)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
GroovyByMethodSpec |
patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.
|
GroovyByMethodSpec |
patch(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
GroovyByMethodSpec |
patch(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
GroovyByMethodSpec |
patch(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
GroovyByMethodSpec |
post(Block block)
Defines the action to to take if the request has a HTTP method of POST.
|
GroovyByMethodSpec |
post(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of POST.
|
GroovyByMethodSpec |
post(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of POST.
|
GroovyByMethodSpec |
post(Handler handler)
Inserts the handler to chain if the request has a HTTP method of POST.
|
GroovyByMethodSpec |
put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.
|
GroovyByMethodSpec |
put(Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
GroovyByMethodSpec |
put(Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
GroovyByMethodSpec |
put(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
GroovyByMethodSpec get(Block block)
get
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec get(Class<? extends Handler> clazz)
get
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec get(Handler handler)
get
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec post(Block block)
post
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec post(Class<? extends Handler> clazz)
post
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec post(Handler handler)
post
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec put(Block block)
put
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec put(Class<? extends Handler> clazz)
put
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec put(Handler handler)
put
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec patch(Block block)
patch
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec patch(Class<? extends Handler> clazz)
patch
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec patch(Handler handler)
patch
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec options(Block block)
options
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec options(Class<? extends Handler> clazz)
options
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec options(Handler handler)
options
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec delete(Block block)
delete
in interface ByMethodSpec
block
- the code to invoke if the request method matchesGroovyByMethodSpec delete(Class<? extends Handler> clazz)
delete
in interface ByMethodSpec
clazz
- a handler classGroovyByMethodSpec delete(Handler handler)
delete
in interface ByMethodSpec
handler
- the handler to delegate toGroovyByMethodSpec named(String methodName, Block block)
methodName
.
The method name is case insensitive.
named
in interface ByMethodSpec
methodName
- The HTTP method to map the given action toblock
- the code to invoke if the request method matchesGroovyByMethodSpec named(String methodName, Class<? extends Handler> clazz)
ByMethodSpec
methodName
.
The method name is case insensitive.
named
in interface ByMethodSpec
methodName
- The HTTP method to map the given action toclazz
- a handler classGroovyByMethodSpec named(String methodName, Handler handler)
ByMethodSpec
methodName
.
The method name is case insensitive.
named
in interface ByMethodSpec
methodName
- The HTTP method to map the given action tohandler
- the handler to delegate toGroovyByMethodSpec get(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec post(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec put(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec patch(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec options(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec delete(@DelegatesTo(value=GroovyContext.class,strategy=1) Closure<?> closure)
closure
- a handler closureGroovyByMethodSpec named(@DelegatesTo(value=GroovyContext.class,strategy=1) String methodName, Closure<?> closure)
methodName
.closure
- a handler closure