public abstract class TransformerProducer
extends org.apache.camel.impl.DefaultProducer
Producer
would map
to a Camel catalog:inputtransformer
Constructor and Description |
---|
TransformerProducer(CatalogEndpoint endpoint)
Constructs the
Producer for the custom Camel CatalogComponent. |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.camel.Exchange exchange) |
protected abstract Object |
transform(org.apache.camel.Message in,
Object metacard,
String mimeType,
String transformerId,
MimeTypeToTransformerMapper mapper) |
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public TransformerProducer(CatalogEndpoint endpoint)
Producer
for the custom Camel CatalogComponent. This producer would map
to a Camel catalog:inputtransformer
endpoint
- the Camel endpoint that created this consumerpublic void process(org.apache.camel.Exchange exchange) throws CatalogTransformerException, MimeTypeParseException, IOException
protected abstract Object transform(org.apache.camel.Message in, Object metacard, String mimeType, String transformerId, MimeTypeToTransformerMapper mapper) throws MimeTypeParseException, IOException, CatalogTransformerException
This work is licensed under a Creative Commons Attribution 4.0 International License.