Annotation Type QueryVar


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface QueryVar
    Annotation that indicates a parameter variable should be bound to an HTTP query parameter.

    Supported for HttpRoute annotated handler methods

    Since:
    1.1
    See Also:
    HttpRoute
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean required
      Returns whether the path variable is required.
      java.lang.String value
      Returns the name of the path variable.
    • Element Detail

      • value

        java.lang.String value
        Returns the name of the path variable.
        Returns:
        the name of the path variable
        Default:
        ""
      • required

        boolean required
        Returns whether the path variable is required.

        The default is true.

        Returns:
        whether the path variable is required
        Default:
        true