Package org.apache.juneau.rest.arg
Class HasFormDataArg
java.lang.Object
org.apache.juneau.rest.arg.HasFormDataArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters annotated with
HasFormData
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getFormParams
()
.contains
(
The parameter type can be a
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HasFormDataArg
Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
HasFormDataArg
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
HasFormDataArg
, ornull if the parameter is not annotated withHasFormData
.
-
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-