Package ddf.camel.component.catalog
Class CatalogEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
ddf.camel.component.catalog.CatalogEndpoint
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.MultipleConsumersSupport,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
public class CatalogEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
Represents a Camel endpoint for the custom
catalog Camel route node.- Author:
- Hugh Rodgers, William Miller
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionCatalogEndpoint(String uri, CatalogComponent component, String transformerId, String mimeType, String contextPath, ddf.catalog.CatalogFramework catalogFramework, ddf.mime.MimeTypeMapper mimeTypeMapper) Constructs a CatalogEndpoint for the specified customcatalogcomponent. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.Producerbooleanorg.apache.camel.ExchangePatternddf.mime.MimeTypeMapperinthashCode()booleanbooleanbooleanvoidsetExecutor(ExecutorService executor) voidsetSynchronous(boolean synchronous) Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isSingletonProducerMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
CatalogEndpoint
public CatalogEndpoint(String uri, CatalogComponent component, String transformerId, String mimeType, String contextPath, ddf.catalog.CatalogFramework catalogFramework, ddf.mime.MimeTypeMapper mimeTypeMapper) Constructs a CatalogEndpoint for the specified customcatalogcomponent.- Parameters:
uri- the endpoint's URIcomponent- the route node catalog componenttransformerId- theInputTransformerID, id=xmlmimeType- the registered service mime-typecontextPath- the context path of the catalog route node, which is the portion of the URI after thecatalogscheme, e.g.,inputtransformer, which indicates how to interpret thecatalogroute nodecatalogFramework- the catalog framework
-
-
Method Details
-
getComponent
- Overrides:
getComponentin classorg.apache.camel.support.DefaultEndpoint
-
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()- Specified by:
getExchangePatternin interfaceorg.apache.camel.Endpoint- Overrides:
getExchangePatternin classorg.apache.camel.support.DefaultEndpoint
-
createProducer
public org.apache.camel.Producer createProducer()- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) - Specified by:
createConsumerin interfaceorg.apache.camel.Endpoint
-
getTransformerId
- Returns:
- ID of the transformer specified as a parameter in the Camel route node
-
getMimeType
-
getMimeTypeMapper
public ddf.mime.MimeTypeMapper getMimeTypeMapper() -
getContextPath
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.apache.camel.IsSingleton- Overrides:
isSingletonin classorg.apache.camel.support.DefaultEndpoint
-
isMultipleConsumersSupported
public boolean isMultipleConsumersSupported()- Specified by:
isMultipleConsumersSupportedin interfaceorg.apache.camel.MultipleConsumersSupport
-
setExecutor
-
getExecutor
-
equals
- Overrides:
equalsin classorg.apache.camel.support.DefaultEndpoint
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.camel.support.DefaultEndpoint
-
isSynchronous
public boolean isSynchronous() -
setSynchronous
public void setSynchronous(boolean synchronous)
-