public interface ByMethodSpec
Context.byMethod(ratpack.func.Action)| Modifier and Type | Method and Description |
|---|---|
ByMethodSpec |
delete(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
delete(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
ByMethodSpec |
delete(Handler handler)
Inserts the handler to chain if the request has a HTTP method of DELETE.
|
ByMethodSpec |
get(Block block)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
get(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of GET.
|
ByMethodSpec |
get(Handler handler)
Inserts the handler to chain if the request has a HTTP method of GET.
|
ByMethodSpec |
named(java.lang.String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName. |
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 |
named(java.lang.String methodName,
Handler handler)
Inserts the handler to chain if the request has a HTTP method of
methodName. |
ByMethodSpec |
options(Block block)
Defines the action to to take if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
options(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
options(Handler handler)
Inserts the handler to chain if the request has a HTTP method of OPTIONS.
|
ByMethodSpec |
patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
patch(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
ByMethodSpec |
patch(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PATCH.
|
ByMethodSpec |
post(Block block)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
post(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of POST.
|
ByMethodSpec |
post(Handler handler)
Inserts the handler to chain if the request has a HTTP method of POST.
|
ByMethodSpec |
put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec |
put(java.lang.Class<? extends Handler> clazz)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
ByMethodSpec |
put(Handler handler)
Inserts the handler to chain if the request has a HTTP method of PUT.
|
ByMethodSpec get(Block block)
block - the code to invoke if the request method matchesByMethodSpec get(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec get(Handler handler)
handler - the handler to delegate toByMethodSpec post(Block block)
block - the code to invoke if the request method matchesByMethodSpec post(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec post(Handler handler)
handler - the handler to delegate toByMethodSpec put(Block block)
block - the code to invoke if the request method matchesByMethodSpec put(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec put(Handler handler)
handler - the handler to delegate toByMethodSpec patch(Block block)
block - the code to invoke if the request method matchesByMethodSpec patch(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec patch(Handler handler)
handler - the handler to delegate toByMethodSpec options(Block block)
block - the code to invoke if the request method matchesByMethodSpec options(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec options(Handler handler)
handler - the handler to delegate toByMethodSpec delete(Block block)
block - the code to invoke if the request method matchesByMethodSpec delete(java.lang.Class<? extends Handler> clazz)
clazz - a handler classByMethodSpec delete(Handler handler)
handler - the handler to delegate toByMethodSpec named(java.lang.String methodName, Block block)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action toblock - the code to invoke if the request method matchesByMethodSpec named(java.lang.String methodName, java.lang.Class<? extends Handler> clazz)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action toclazz - a handler classByMethodSpec named(java.lang.String methodName, Handler handler)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action tohandler - the handler to delegate to