public interface ByMethodSpec
Context.byMethod(ratpack.func.Action)| Modifier and Type | Method and Description |
|---|---|
ByMethodSpec |
delete(Handler handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
delete(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
get(Handler handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
get(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
named(String methodName,
Handler handler)
Defines the action to to take if the request has a HTTP method of
methodName. |
ByMethodSpec |
named(String methodName,
NoArgAction handler)
Defines the action to to take if the request has a HTTP method of
methodName. |
ByMethodSpec |
patch(Handler handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
patch(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
post(Handler handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
post(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
put(Handler handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec |
put(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec get(NoArgAction handler)
handler - The handler to invoke if the request method matchesByMethodSpec get(Handler handler)
handler - The handler to invoke if the request method matchesByMethodSpec post(NoArgAction handler)
handler - The handler to invoke if the request method matchesByMethodSpec post(Handler handler)
handler - The handler to invoke if the request method matchesByMethodSpec put(NoArgAction handler)
handler - The handler to invoke if the request method matchesByMethodSpec put(Handler handler)
handler - The handler to invoke if the request method matchesByMethodSpec patch(NoArgAction handler)
handler - The handler to invoke if the request method matchesByMethodSpec patch(Handler handler)
handler - The handler to invoke if the request method matchesByMethodSpec delete(NoArgAction handler)
handler - The handler to invoke if the request method matchesByMethodSpec delete(Handler handler)
handler - The handler to invoke if the request method matchesByMethodSpec named(String methodName, NoArgAction handler)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action tohandler - The handler to invoke if the request method matchesByMethodSpec named(String methodName, Handler handler)
methodName.
The method name is case insensitive.
methodName - The HTTP method to map the given action tohandler - The handler to invoke if the request method matches