Inbound components

Inbound components route JSON messages to control points and devices.

To create a new inbound type, you extend one of the three main types: BJsonRouter, BJsonSelector or BJsonHandler and implement routeValue(BString message, Context cx) throws RoutingFailedException. You can create a new RoutingFailedException at any stage to report an error and update the lastResult slot.

When extending any of the BJsonInbound types, you may specify which property triggers an automatic re-routing of the last input with Property[] getRerunTriggers(). The helper interface JsonKeyExtractUtil contains several methods for extracting values from a JSON payload.