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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
    The 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.camel.Endpoint
    createEndpoint(String uri, String remaining, Map<String,Object> parameters)
     
    void
     
    org.osgi.framework.BundleContext
    Retrieves the bundle context.
    ddf.mime.MimeTypeToTransformerMapper
    Retrieves the mimetype-to-transformer mapper service.
    void
    setBundleContext(org.osgi.framework.BundleContext bundleContext)
    Sets the bundle context.
    void
    setCatalogFramework(ddf.catalog.CatalogFramework catalogFramework)
    Sets the catalog framework
    void
     
    void
    setMimeTypeMapper(ddf.mime.MimeTypeMapper mimeTypeMapper)
     
    void
    setMimeTypeToTransformerMapper(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, validateURI

    Methods 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, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Field Details

  • 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:
      createEndpoint in class org.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

      public void setExecutor(ExecutorService executor)
    • destroy

      public void destroy()