Interface RestFunctionContext

All Superinterfaces:
CallbackFunctionContext, FunctionContext

public interface RestFunctionContext extends CallbackFunctionContext
A RestFunctionContext is the context in which a RestFunction is executed.
Author:
seed-master
  • 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