Package org.apache.juneau.rest.arg
Class PathRemainderArg
java.lang.Object
org.apache.juneau.rest.arg.PathRemainderArg
- All Implemented Interfaces:
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:
getRequest()
.getPathParams()
.get(as(
schema is derived from the PathRemainder annotation.
See Also:
- Since:
- 9.2.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPathRemainderArg(ParameterInfo paramInfo, AnnotationWorkList annotations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathRemainderArgcreate(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
PathRemainderArg
Constructor.- Parameters:
paramInfo- The Java method parameter being resolved.annotations- The annotations to apply to any new part parsers.
-
-
Method Details
-
create
public static PathRemainderArg create(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator.- Parameters:
paramInfo- The Java method parameter being resolved.annotations- The annotations to apply to any new part parsers.pathMatcher- Path matcher for the specified method (not used, but included for BeanStore compatibility).- Returns:
- A new
PathRemainderArg, ornull if the parameter is not annotated withPathRemainder.
-
resolve
Description copied from interface:RestOpArgResolves the parameter object.
-