- Type Parameters:
A- the resource type
- All Superinterfaces:
Route<A>
An HTTP method route.
This is used to define route based on the HTTP method specified in an input. For instance, in order to resolve a handler for an HTTP request with a POST method, a method route must be
defined with POST method targeting a POST handler.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMethodRoute.Extractor<A,B extends MethodRoute<A>, C extends MethodRoute.Extractor<A, B, C>> An HTTP method route extractor.static interfaceMethodRoute.Manager<A,B, C extends MethodRoute<A>, D extends MethodRoute.Manager<A, B, C, D, E>, E extends Router<A, B, C, D, E>> An HTTP method route manager. -
Method Summary
-
Method Details
-
getMethod
Method getMethod()Returns an HTTP method.
- Returns:
- an HTTP method
-