public class RestFunctions extends BaseFunctions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROOVY_KEY |
mExecute, mFLOG, mScriptRef
Constructor and Description |
---|
RestFunctions() |
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() |
captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getLogFunctions, getServerBaseUrl, setScriptRef
public static final java.lang.String GROOVY_KEY
public RestFunctions(boolean b, LogFunctions pLogFunctions)
public RestFunctions(boolean b)
public RestFunctions()
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
- if the request failspublic FlexRESTClient getClient()
public java.lang.String getGroovyKey()
getGroovyKey
in class BaseFunctions
public void cleanup()
cleanup
in class BaseFunctions