Class ParserArg

All Implemented Interfaces:
RestOpArg

public class ParserArg extends SimpleRestOperationArg
Resolves method parameters of type Parser on RestOp-annotated Java methods.

The parameter value is resolved using:

opSession .getRequest() .getContent() .getParserMatch() .getParser();

See Also:
  • Constructor Details

    • ParserArg

      protected ParserArg()
      Constructor.
  • Method Details

    • create

      public static ParserArg create(ParamInfo paramInfo)
      Static creator.
      Parameters:
      paramInfo - The Java method parameter being resolved.
      Returns:
      A new ParserArg, or null if the parameter type is not Parser.