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(Handler handler)
Defines the action to to take 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(Handler handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByMethodSpec |
named(String methodName,
Block block)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByMethodSpec |
named(String methodName,
Handler handler)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByMethodSpec |
patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByMethodSpec |
patch(Handler handler)
Defines the action to to take 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(Handler handler)
Defines the action to to take 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(Handler handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec get(Block block)
block
- the code to invoke if the request method matchesByMethodSpec get(Handler handler)
handler
- The handler to invoke if the request method matchesByMethodSpec post(Block block)
block
- the code to invoke if the request method matchesByMethodSpec post(Handler handler)
handler
- The handler to invoke if the request method matchesByMethodSpec put(Block block)
block
- the code to invoke if the request method matchesByMethodSpec put(Handler handler)
handler
- The handler to invoke if the request method matchesByMethodSpec patch(Block block)
block
- the code to invoke if the request method matchesByMethodSpec patch(Handler handler)
handler
- The handler to invoke if the request method matchesByMethodSpec delete(Block block)
block
- the code to invoke if the request method matchesByMethodSpec delete(Handler handler)
handler
- The handler to invoke if the request method matchesByMethodSpec named(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(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