Package org.apache.juneau.rest.arg
Class ContentArg
java.lang.Object
org.apache.juneau.rest.arg.ContentArg
- All Implemented Interfaces:
RestOpArg
Resolves method parameters and parameter types annotated with
Content
on RestOp
-annotated Java methods.
The parameter value is resolved using:
getRequest
()
.getContent
()
.setSchema
(as
(
schema
is derived from the Content
annotation.
See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentArg
Static creator.resolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
ContentArg
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
ContentArg
, ornull if the parameter is not annotated withContent
.
-
resolve
Description copied from interface:RestOpArg
Resolves the parameter object.
-