Annotation Interface RequestRoute


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface RequestRoute
Annotation which indicates that the method should be called if the incoming request matches.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the HTTP method (ie: GET).
    Returns the route name.
    Returns the route URL (ie: /test/helloworld).
  • Element Details

    • method

      HttpMethod method
      Returns the HTTP method (ie: GET).
      Returns:
      The HTTP method
      Default:
      GET
    • route

      String route
      Returns the route URL (ie: /test/helloworld).
      Returns:
      The route URL
      Default:
      "/"
    • name

      String name
      Returns the route name. This name is used during the reverse URL process.
      Returns:
      The route name
      Default:
      ""