Annotation Interface RoutingPath


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Repeatable(RoutingPaths.class) public @interface RoutingPath
Marks a method as RouteHandler method. The specified path template needs to match in order to apply the method.

Path templates are relative, since every router has a path prefix (including SessionContext). Path templates are normalized, meaning: a leading '/' will be added and trailing slashes will be removed automatically.

Example:

 @Routing("/foo/{id}")
 String setFooId(@PathParameter("id") Integer id,
                 @QueryParameter("filter") String filter) {
        ...
 }