Class RequestBeanArg
java.lang.Object
org.apache.juneau.rest.server.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
ConstructorsModifierConstructorDescriptionprotectedRequestBeanArg(ParameterInfo paramInfo, AnnotationWorkList annotations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestBeanArgcreate(ParameterInfo paramInfo, AnnotationWorkList annotations) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
RequestBeanArg
Constructor.- Parameters:
paramInfo- The Java method parameter being resolved. Must not benull .annotations- The annotations to apply to any new part parsers.- Throws:
IllegalArgumentException- If the bean is a concrete class with no public no-arg constructor, or with an annotated getter that has no matching setter (seeRequestBeanSetters.resolve(java.lang.Class<?>, org.apache.juneau.httppart.bean.RequestBeanMeta)).
-
-
Method Details
-
create
Static creator.- Parameters:
paramInfo- The Java method parameter being resolved. Must not benull .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:RestOpArgResolves the parameter object.
-