@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Route
An application package can be annotated to mount the application, this is useful when a compilation unit contains several applications and each needs to be accessed with a different route
@Route("/myapplication")
@Application
package myapplication;
Controller methods can be annotated to mount the controller:
public class MyController {
@Action
@Route("/myaction/{value}")
public Response.Content myAction(String value) { ... }
@View
@Route("/myview")
public Response.Content myView() { ... }
@Resource
@Route("/myresource")
public Response.Content myView() { ... }
}
The Param annotation can be used further more for constraining a parameter in the route path.public abstract String value
public abstract int priority
Copyright © 2016 eXo Platform SAS. All rights reserved.