Package org.apache.juneau.rest.arg
Class ResponseBeanArg
java.lang.Object
org.apache.juneau.rest.arg.ResponseBeanArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters and parameter types annotated with
Response on RestOp-annotated Java methods.
The parameter value must be of type Value that accepts a value that is then set via:
getResponse()
.setOutput(
See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResponseBeanArg(ParameterInfo paramInfo, AnnotationWorkList annotations) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseBeanArgcreate(ParameterInfo paramInfo, AnnotationWorkList annotations) Static creator.resolve(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
ResponseBeanArg
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
ResponseBeanArg, ornull if the parameter is not annotated withResponse.
-
resolve
Description copied from interface:RestOpArgResolves the parameter object.
-