Package org.apache.juneau.rest.arg
Class HasQueryArg
java.lang.Object
org.apache.juneau.rest.arg.HasQueryArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters annotated with
HasQuery
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getQueryParams
()
.contains
(
The parameter type can be a
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HasQueryArg
Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
HasQueryArg
Constructor.- Parameters:
pi
- The Java method parameter being resolved.
-
-
Method Details
-
create
Static creator.- Parameters:
paramInfo
- The Java method parameter being resolved.- Returns:
- A new
HasQueryArg
, ornull if the parameter is not annotated withHasQuery
.
-
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-