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
ConstructorsModifierConstructorDescriptionprotectedPathArg(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathArgcreate(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
PathArg
protected PathArg(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) 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(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator. -
resolve
Description copied from interface:RestOpArgResolves the parameter object.
-