public class RestFunctions extends BaseFunctions
Constructor and Description |
---|
RestFunctions(boolean b) |
RestFunctions(boolean b,
LogFunctions pLogFunctions) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
int |
forward(java.lang.String pUrl,
java.lang.Object pPayload)
Forwards a FlexDeploy Event via a POST request to another url, essentially making it a webhook.
|
FlexRESTClient |
getClient()
Returns a FlexRESTClient object which can be configured to make REST calls.
|
java.lang.String |
getGroovyKey() |
approveTask, approveTaskByEmails, decryptIntegrationInstance, doSimpleGet, findIntegrationInstance, getLogFunctions, getServerBaseUrl, rejectTask, rejectTaskByEmails
public RestFunctions(boolean b, LogFunctions pLogFunctions)
public RestFunctions(boolean b)
public int forward(java.lang.String pUrl, java.lang.Object pPayload) throws FlexCheckedException
getClient()
.pUrl
- The url to forward the request to.pPayload
- The payload to forward, typically just the EVENT variable.FlexCheckedException
public FlexRESTClient getClient()
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions