Annotation Interface QueryParameter


@Target(PARAMETER) @Retention(RUNTIME) public @interface QueryParameter
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Defines the name of the HTTP query parameter whose value will be used to initialize the value of the annotated method argument.
  • Element Details

    • value

      String value
      Defines the name of the HTTP query parameter whose value will be used to initialize the value of the annotated method argument. The name is specified in decoded form, any percent encoded literals within the value will not be decoded and will instead be treated as literal text. E.g. if the parameter name is "a b" then the value of the annotation is "a b", not "a+b" or "a%20b".