Package ddf.camel.component.catalog
Class CatalogComponent
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultComponent
ddf.camel.component.catalog.CatalogComponent
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Component,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
public class CatalogComponent
extends org.apache.camel.support.DefaultComponent
Represents the component that manages
CatalogEndpoint and resolves to catalog
custom scheme in Camel route nodes.- Author:
- Hugh Rodgers, William Miller
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringThe name of the scheme this custom Camel component resolves to.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.Endpointvoiddestroy()org.osgi.framework.BundleContextRetrieves the bundle context.ddf.mime.MimeTypeToTransformerMapperRetrieves the mimetype-to-transformer mapper service.voidsetBundleContext(org.osgi.framework.BundleContext bundleContext) Sets the bundle context.voidsetCatalogFramework(ddf.catalog.CatalogFramework catalogFramework) Sets the catalog frameworkvoidsetExecutor(ExecutorService executor) voidsetMimeTypeMapper(ddf.mime.MimeTypeMapper mimeTypeMapper) voidsetMimeTypeToTransformerMapper(ddf.mime.MimeTypeToTransformerMapper mimeTypeToTransformerMapper) Sets the mimetype-to-transformer mapper service.Methods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIMethods inherited from class org.apache.camel.support.service.BaseService
build, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Field Details
-
ID_PARAMETER
- See Also:
-
MIME_TYPE_PARAMETER
- See Also:
-
NAME
The name of the scheme this custom Camel component resolves to.- See Also:
-
-
Constructor Details
-
CatalogComponent
public CatalogComponent()
-
-
Method Details
-
createEndpoint
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws ddf.catalog.transform.CatalogTransformerException- Specified by:
createEndpointin classorg.apache.camel.support.DefaultComponent- Throws:
ddf.catalog.transform.CatalogTransformerException
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()Retrieves the bundle context.- Returns:
- the bundle context
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) Sets the bundle context.- Parameters:
bundleContext-
-
getMimeTypeToTransformerMapper
public ddf.mime.MimeTypeToTransformerMapper getMimeTypeToTransformerMapper()Retrieves the mimetype-to-transformer mapper service.- Returns:
- the mimetype-to-transformer mapper service
-
setMimeTypeToTransformerMapper
public void setMimeTypeToTransformerMapper(ddf.mime.MimeTypeToTransformerMapper mimeTypeToTransformerMapper) Sets the mimetype-to-transformer mapper service.- Parameters:
mimeTypeToTransformerMapper-
-
setCatalogFramework
public void setCatalogFramework(ddf.catalog.CatalogFramework catalogFramework) Sets the catalog framework- Parameters:
catalogFramework- the catalog framework
-
setMimeTypeMapper
public void setMimeTypeMapper(ddf.mime.MimeTypeMapper mimeTypeMapper) -
setExecutor
-
destroy
public void destroy()
-