use of ddf.camel.component.catalog.queryresponsetransformer.QueryResponseTransformerConsumer in project ddf by codice.
the class CatalogEndpoint method createConsumer.
/*
* (non-Javadoc)
*
* @see org.apache.camel.Endpoint#createConsumer(org.apache.camel.Processor)
*/
public Consumer createConsumer(Processor processor) {
LOGGER.debug("INSIDE createConsumer");
// Camel Consumers map to <from> route nodes.
Consumer consumer = null;
// e.g., <from uri="catalog:inputtransformer?mimeType=text/xml&id=xml" />
if (contextPath.equals(INPUT_TRANSFORMER)) {
consumer = new InputTransformerConsumer(this, processor);
} else if (contextPath.equals(QUERYRESPONSE_TRANSFORMER)) {
consumer = new QueryResponseTransformerConsumer(this, processor);
} else {
LOGGER.debug("Unable to create consumer for context path [{}]", contextPath);
throw new IllegalArgumentException("Unable to create consumer for context path [" + contextPath + "]");
}
return consumer;
}
Aggregations