Allow access to a parameter from MVC route method and from multiple sources.
The order of ParamSource
s defines the search priority.
public String search(@Param({ ParamSource.QUERY, ParamSource.PATH }) String q) {
...
}
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionParameter sources to search in, the order defines the search priority. -
Optional Element Summary
-
Element Details
-
value
ParamSource[] valueParameter sources to search in, the order defines the search priority.- Returns:
- Parameter sources to search in.
-
-
-
name
String nameParameter name.- Returns:
- Parameter name.
- Default:
- ""
-