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(java.lang.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(java.lang.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(java.lang.String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName. |
GroovyByMethodSpec |
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. |
GroovyByMethodSpec |
named(java.lang.String methodName,
Closure<?> closure)
Inserts the handler to chain if the request has a HTTP method of
methodName. |
GroovyByMethodSpec |
named(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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 ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec get(java.lang.Class<? extends Handler> clazz)
get in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec get(Handler handler)
get in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec post(Block block)
post in interface ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec post(java.lang.Class<? extends Handler> clazz)
post in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec post(Handler handler)
post in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec put(Block block)
put in interface ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec put(java.lang.Class<? extends Handler> clazz)
put in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec put(Handler handler)
put in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec patch(Block block)
patch in interface ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec patch(java.lang.Class<? extends Handler> clazz)
patch in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec patch(Handler handler)
patch in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec options(Block block)
options in interface ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec options(java.lang.Class<? extends Handler> clazz)
options in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec options(Handler handler)
options in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec delete(Block block)
delete in interface ByMethodSpecblock - the code to invoke if the request method matchesGroovyByMethodSpec delete(java.lang.Class<? extends Handler> clazz)
delete in interface ByMethodSpecclazz - a handler classGroovyByMethodSpec delete(Handler handler)
delete in interface ByMethodSpechandler - the handler to delegate toGroovyByMethodSpec named(java.lang.String methodName, Block block)
methodName.
The method name is case insensitive.
named in interface ByMethodSpecmethodName - The HTTP method to map the given action toblock - the code to invoke if the request method matchesGroovyByMethodSpec named(java.lang.String methodName, java.lang.Class<? extends Handler> clazz)
ByMethodSpecmethodName.
The method name is case insensitive.
named in interface ByMethodSpecmethodName - The HTTP method to map the given action toclazz - a handler classGroovyByMethodSpec named(java.lang.String methodName, Handler handler)
ByMethodSpecmethodName.
The method name is case insensitive.
named in interface ByMethodSpecmethodName - 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) java.lang.String methodName, Closure<?> closure)
methodName.closure - a handler closure