Package org.apache.juneau.rest.arg
Class SimpleRestOperationArg
java.lang.Object
org.apache.juneau.rest.arg.SimpleRestOperationArg
- All Implemented Interfaces:
RestOpArg
- Direct Known Subclasses:
HttpServletRequestArgs
,HttpServletResponseArgs
,HttpSessionArgs
,InputStreamParserArg
,ParserArg
,ReaderParserArg
,RestContextArgs
,RestOpContextArgs
,RestOpSessionArgs
,RestRequestArgs
,RestResponseArgs
,RestSessionArgs
An implementation of a
RestOpArg
that takes in a ThrowingFunction
for resolving a parameter value.
See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleRestOperationArg
(ThrowingFunction<RestOpSession, T> function) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(RestOpSession opSession) Resolves the parameter object.
-
Constructor Details
-
SimpleRestOperationArg
Constructor.- Type Parameters:
T
- The function return type.- Parameters:
function
- The function to use to retrieve the parameter value from theRestSession
.
-
-
Method Details