Class PathArg
java.lang.Object
org.apache.juneau.rest.server.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. Must not benull .annotations- The annotations to apply to any new part parsers.pathMatcher- Path matcher for the specified method. Can benull (the name must then be specified on thePathannotation).
-
-
Method Details
-
create
public static PathArg create(ParameterInfo paramInfo, AnnotationWorkList annotations, UrlPathMatcher pathMatcher) Static creator.- Parameters:
paramInfo- The Java method parameter being resolved. Must not benull .annotations- The annotations to apply to any new part parsers.pathMatcher- Path matcher for the specified method. Can benull (the name must then be specified on thePathannotation).- Returns:
- A new
PathArg, ornull if the parameter is not annotated withPath.
-
resolve
Description copied from interface:RestOpArgResolves the parameter object.
-