Package org.apache.juneau.rest.arg
Class AttributeArg
java.lang.Object
org.apache.juneau.rest.arg.AttributeArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters and parameter types annotated with
Attr
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getAttributes
()
.get
(as
(
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeArg
Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
AttributeArg
Constructor.- Parameters:
paramInfo
- The Java method parameter being resolved.
-
-
Method Details
-
create
Static creator.- Parameters:
paramInfo
- The Java method parameter being resolved.- Returns:
- A new
AttributeArg
, ornull if the parameter is not annotated withAttr
.
-
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-