Class HasQueryArg

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

public class HasQueryArg extends Object implements RestOpArg
Resolves method parameters annotated with HasQuery on RestOp-annotated Java methods.

The parameter value is resolved using:

opSession .getRequest() .getQueryParams() .contains(name);

The parameter type can be a boolean or anything convertible from a boolean.

See Also:
  • Constructor Details

    • HasQueryArg

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