Annotation Type 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.

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static int DEFAULT_PRIORITY  
    • Optional Element Summary

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

      • DEFAULT_PRIORITY

        static final int DEFAULT_PRIORITY
    • Element Detail

      • value

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