public interface ByMethodSpec
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 |
get(Handler 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 |
patch(Handler 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 |
put(Handler handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByMethodSpec get(Handler 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(Handler 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(Handler handler)
handler
- 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