Annotation Interface FirstRequestQueryParam


@Documented @Target(PARAMETER) @Retention(RUNTIME) public @interface FirstRequestQueryParam
Get the first value of the associated query key. The value passed to the associated parameter is String. This annotation can be combined with @Optional to mark the parameter as optional.
Since:
4.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Get the key of the first query parameter to retrieve.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Gets the default value to inject if no query parameter with the specified key is given and the parameter marked as optional.
  • Element Details

    • value

      Get the key of the first query parameter to retrieve.
      Returns:
      the key of the first query parameter to retrieve.
    • def

      Gets the default value to inject if no query parameter with the specified key is given and the parameter marked as optional. This defaults to __NULL__ which will inject null for the parameter.
      Returns:
      the default value to inject if this query parameter is not present.
      Default:
      "__NULL__"