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