Class PathRemainderArg

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

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

This is a specialized version of PathArg for the path remainder (the part matched by /*). It's functionally equivalent to using @Path("/*"), but provides a more intuitive annotation name.

The parameter value is resolved using:

opSession .getRequest() .getPathParams() .get("/*") .as(type);

schema is derived from the PathRemainder annotation.

See Also:
Since:
9.2.0
  • Constructor Details

    • PathRemainderArg

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