Package org.apache.juneau.rest.arg
Class QueryArg
java.lang.Object
org.apache.juneau.rest.arg.QueryArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters and parameter types annotated with
Query on RestOp-annotated Java methods.
The parameter value is resolved using:
getRequest()
.getQueryParams()
.get(as(
schema is derived from the Query annotation.
If the Schema.collectionFormat() value is HttpPartCollectionFormat.MULTI, then the data type can be a Collection or array.
See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQueryArg(ParameterInfo pi, AnnotationWorkList annotations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryArgcreate(ParameterInfo paramInfo, AnnotationWorkList annotations) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
QueryArg
Constructor.- Parameters:
pi- The Java method parameter being resolved.annotations- The annotations to apply to any new part parsers.
-
-
Method Details
-
create
Static creator. -
resolve
Description copied from interface:RestOpArgResolves the parameter object.
-