Class XsltSaxonComponent

  • 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

    @Component("xslt-saxon")
    public class XsltSaxonComponent
    extends org.apache.camel.component.xslt.XsltComponent
    The XSLT Component is for performing XSLT transformations of messages using Saxon.
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureEndpoint​(org.apache.camel.Endpoint endpoint, String remaining, Map<String,​Object> parameters)  
      protected XsltSaxonEndpoint createXsltEndpoint​(String uri)  
      net.sf.saxon.Configuration getSaxonConfiguration()  
      Map<String,​Object> getSaxonConfigurationProperties()  
      List<Object> getSaxonExtensionFunctions()  
      void setSaxonConfiguration​(net.sf.saxon.Configuration saxonConfiguration)
      To use a custom Saxon configuration
      void setSaxonConfigurationProperties​(Map<String,​Object> configurationProperties)
      To set custom Saxon configuration properties
      void setSaxonExtensionFunctions​(String extensionFunctions)
      Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition.
      void setSaxonExtensionFunctions​(List<Object> extensionFunctions)
      Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition.
      • Methods inherited from class org.apache.camel.component.xslt.XsltComponent

        createEndpoint, getTransformerFactoryClass, getTransformerFactoryConfigurationStrategy, getUriResolver, getUriResolverFactory, isContentCache, setContentCache, setTransformerFactoryClass, setTransformerFactoryConfigurationStrategy, setUriResolver, setUriResolverFactory
      • Methods inherited from class org.apache.camel.support.DefaultComponent

        afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, 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 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
    • Constructor Detail

      • XsltSaxonComponent

        public XsltSaxonComponent()
    • Method Detail

      • getSaxonExtensionFunctions

        public List<Object> getSaxonExtensionFunctions()
      • setSaxonExtensionFunctions

        public void setSaxonExtensionFunctions​(List<Object> extensionFunctions)
        Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition. You would need to add camel-saxon to the classpath. The function is looked up in the registry, where you can comma to separate multiple values to lookup.
      • setSaxonExtensionFunctions

        public void setSaxonExtensionFunctions​(String extensionFunctions)
        Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition. You would need to add camel-saxon to the classpath. The function is looked up in the registry, where you can comma to separate multiple values to lookup.
      • getSaxonConfiguration

        public net.sf.saxon.Configuration getSaxonConfiguration()
      • setSaxonConfiguration

        public void setSaxonConfiguration​(net.sf.saxon.Configuration saxonConfiguration)
        To use a custom Saxon configuration
      • getSaxonConfigurationProperties

        public Map<String,​Object> getSaxonConfigurationProperties()
      • setSaxonConfigurationProperties

        public void setSaxonConfigurationProperties​(Map<String,​Object> configurationProperties)
        To set custom Saxon configuration properties
      • createXsltEndpoint

        protected XsltSaxonEndpoint createXsltEndpoint​(String uri)
        Overrides:
        createXsltEndpoint in class org.apache.camel.component.xslt.XsltComponent
      • configureEndpoint

        protected void configureEndpoint​(org.apache.camel.Endpoint endpoint,
                                         String remaining,
                                         Map<String,​Object> parameters)
                                  throws Exception
        Overrides:
        configureEndpoint in class org.apache.camel.component.xslt.XsltComponent
        Throws:
        Exception