Annotation Interface PathVariable


@Target(PARAMETER) @Retention(RUNTIME) public @interface PathVariable
Annotates a method parameter. Should be used in Controllers and Filters.

Value refers to a variable value on the request path, and the parameter type must be a convertable type.

Author:
Matthew Tropiano
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      the name of the path variable.