Class FormDataArg

java.lang.Object
org.apache.juneau.rest.arg.FormDataArg
All Implemented Interfaces:
RestOpArg

public class FormDataArg extends Object implements RestOpArg
Resolves method parameters and parameter types annotated with FormData on RestOp-annotated Java methods.

The parameter value is resolved using:

opSession .getRequest() .getFormParams() .get(name) .as(type);

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 Details

    • FormDataArg

      protected FormDataArg(ParamInfo pi, AnnotationWorkList annotations)
      Constructor.
      Parameters:
      pi - The Java method parameter being resolved.
      annotations - The annotations to apply to any new part parsers.
  • Method Details