Package org.apache.juneau.rest.arg
Class RequestBeanArg
java.lang.Object
org.apache.juneau.rest.arg.RequestBeanArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters annotated with
Request
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getRequest
(
meta
is derived from the Request
annotation and context configuration.
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
RequestBeanArg
(ParamInfo paramInfo, AnnotationWorkList annotations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestBeanArg
create
(ParamInfo paramInfo, AnnotationWorkList annotations) Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
RequestBeanArg
Constructor.- Parameters:
paramInfo
- The Java method parameter being resolved.annotations
- The annotations to apply to any new part parsers.
-
-
Method Details
-
create
Static creator.- Parameters:
paramInfo
- The Java method parameter being resolved.annotations
- The annotations to apply to any new part parsers.- Returns:
- A new
RequestBeanArg
, ornull if the parameter is not annotated withRequest
.
-
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-