Class ContentArg

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

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

The parameter value is resolved using:

opSession .getRequest() .getContent() .setSchema(schema) .as(type);

schema is derived from the Content annotation.

See Also:
  • Constructor Details

    • ContentArg

      protected ContentArg(ParamInfo paramInfo)
      Constructor.
      Parameters:
      paramInfo - The Java method parameter being resolved.
  • Method Details