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, transform
createUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public QueryResponseTransformerConsumer(CatalogEndpoint endpoint, org.apache.camel.Processor processor)
Consumer
would map to a Camel
catalog:queryresponsetransformer
endpoint
- the Camel endpoint that created this consumerprocessor
- public BinaryContent transform(SourceResponse upstreamResponse, Map<String,Serializable> arguments) throws CatalogTransformerException
QueryResponseTransformer
BinaryContent
.transform
in interface QueryResponseTransformer
arguments
- 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.