Package org.apache.juneau.rest.arg
Class PathArg
java.lang.Object
org.apache.juneau.rest.arg.PathArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters and parameter types annotated with
Path
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getPathParams
()
.get
(as
(
schema
is derived from the Path
annotation.
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
PathArg
(ParamInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathArg
create
(ParamInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
PathArg
Constructor.- 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.
-
-
Method Details
-
create
public static PathArg create(ParamInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator. -
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-