Module io.jooby

Annotation Interface Param


@Retention(RUNTIME) @Target(PARAMETER) public @interface Param
Allow access to a parameter from MVC route method and from multiple sources.

The order of ParamSources defines the search priority.


 public String search(@Param({ ParamSource.QUERY, ParamSource.PATH }) String q) {
   ...
 }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Parameter sources to search in, the order defines the search priority.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Parameter name.
  • Element Details

    • value

      ParamSource[] value
      Parameter sources to search in, the order defines the search priority.
      Returns:
      Parameter sources to search in.
    • name

      String name
      Parameter name.
      Returns:
      Parameter name.
      Default:
      ""