HttpRemoteProcessor

Version #1

Description:

Provides the option of extending Respresso’s features with custom logic.
Any data provided in the input is posted as JSON on the configured URL and the response JSON is parsed and piped to the output.
If there are any Lazy in the input it is recursively resolved and replaced with its content. Note that binary data is converted to a base64 encoded String.
IMPORTANT the response must be application/json. The response is parsed without conversion and piped to the output.
Only 200 OK is treated as a successful request.

Interface:

Basic sample:

<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="HttpRemoteProcessor" version="1">
  {
    "url": STRING
  }
</processor>

Advanced sample:

<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="HttpRemoteProcessor" version="1">
  {
    "body": STRING,
    "connectTimeout": INTEGER,
    "headers": ARRAY<HTTPHEADERSTRUCTURE:V1>,
    "placeholders": ARRAY<DYNAMICPLACEHOLDERSTRUCTURE:V1>,
    "socketTimeout": INTEGER,
    "url": STRING
  }
</processor>

Chainable processors: