Package org.seed.core.api
Interface RestFunctionContext
- All Superinterfaces:
CallbackFunctionContext
,FunctionContext
A
RestFunctionContext
is the context in which a RestFunction
is executed.- Author:
- seed-master
-
Method Summary
Methods inherited from interface org.seed.core.api.CallbackFunctionContext
getClientProvider, getDataSourceProvider, getEventType, getMailProvider, getObjectProvider, getParameterProvider, getRestProvider, getSourceStatus, getStoredProcedureProvider, getTargetStatus
Methods inherited from interface org.seed.core.api.FunctionContext
getProperty, getSuccessMessage, hasProperty, setProperty, setSuccessMessage
-
Method Details
-
getMethodType
RestFunction.MethodType getMethodType()Returns the HTTP request method type- Returns:
- the HTTP request method type
-
getBody
Object getBody()Returns the request body object- Returns:
- the request body object or
null
if no body object exist
-
getParameters
String[] getParameters()Returns an array of parameter values parsed from path elements. Example: /a/b/123 -> ["a","b","123"]- Returns:
- an array of parameter values parsed from path elements
-