Annotation Interface RouteFilter


@Retention(RUNTIME) @Target(METHOD) public @interface RouteFilter
This annotation is used to define a "filter", i.e. a route called on every HTTP request.

The target business method must return void and accept exactly one argument of type RoutingContext.

Filters with higher priority are called first. The default priority for all annotation-based filters is DEFAULT_PRIORITY.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Filters with higher priority are called first.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Field Details

  • Element Details

    • value

      int value
      Filters with higher priority are called first.
      Returns:
      the priority
      See Also:
      Default:
      10