public class QueryResponseTransformerConsumer extends TransformerConsumer implements QueryResponseTransformer
Consumer would map to a Camel catalog:queryresponsetransformer| Constructor and Description |
|---|
QueryResponseTransformerConsumer(CatalogEndpoint endpoint,
org.apache.camel.Processor processor)
Constructs the consumer for the custom Camel CatalogComponent.
|
| Modifier and Type | Method and Description |
|---|---|
BinaryContent |
transform(SourceResponse upstreamResponse,
Map<String,Serializable> arguments)
Transforms the list of results into the
BinaryContent. |
doStart, doStop, transformcreateUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic QueryResponseTransformerConsumer(CatalogEndpoint endpoint, org.apache.camel.Processor processor)
Consumer would map to a Camel
catalog:queryresponsetransformerendpoint - the Camel endpoint that created this consumerprocessor - public BinaryContent transform(SourceResponse upstreamResponse, Map<String,Serializable> arguments) throws CatalogTransformerException
QueryResponseTransformerBinaryContent.transform in interface QueryResponseTransformerarguments - the arguments that may be used to execute the transformCatalogTransformerException - if the response cannot be transformedThis work is licensed under a Creative Commons Attribution 4.0 International License.