Annotation Interface RequestVariable


@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface RequestVariable
Annotation which indicates that a method parameter should be bound to a query string variable.
Since:
1.0.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the query string variable to bind to the method parameter.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The fallback value to use when the request variable is not provided.
  • Element Details

    • value

      String value
      The name of the query string variable to bind to the method parameter.
      Returns:
      The name of the query string variable to bind to the method parameter.
      Since:
      1.0.0
    • fallback

      String fallback
      The fallback value to use when the request variable is not provided.
      Returns:
      The fallback value to use when the request variable is not provided
      Since:
      1.6.0
      Default:
      "\u0000\u0000"