public class InputTransformerConsumer extends TransformerConsumer implements InputTransformer
Consumer
would map to a Camel catalog:inputtransformer
Constructor and Description |
---|
InputTransformerConsumer(CatalogEndpoint endpoint,
org.apache.camel.Processor processor)
Constructs the consumer for the custom Camel CatalogComponent.
|
Modifier and Type | Method and Description |
---|---|
Metacard |
transform(InputStream input)
Transforms the input into a
Metacard . |
Metacard |
transform(InputStream input,
String id)
|
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 InputTransformerConsumer(CatalogEndpoint endpoint, org.apache.camel.Processor processor)
Consumer
would map to a Camel
catalog:inputtransformer
endpoint
- the Camel endpoint that created this consumerprocessor
- public Metacard transform(InputStream input) throws IOException, CatalogTransformerException
InputTransformer
Metacard
.transform
in interface InputTransformer
input
- the binary InputStream
to transformMetacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationpublic Metacard transform(InputStream input, String id) throws IOException, CatalogTransformerException
InputTransformer
transform
in interface InputTransformer
input
- the binary InputStream
to transformid
- the attribute value for the Metacard.ID
attribute that should be set in the
generated Metacard
Metacard
IOException
- if an I/O exception occurs when reading the InputStream
CatalogTransformerException
- if an error occurs during transformationThis work is licensed under a Creative Commons Attribution 4.0 International License.