Class XsltSaxonComponent

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultComponent
org.apache.camel.component.xslt.XsltComponent
org.apache.camel.component.xslt.saxon.XsltSaxonComponent
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Component, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, 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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configureEndpoint(org.apache.camel.Endpoint endpoint, String remaining, Map<String,Object> parameters)
     
     
    net.sf.saxon.Configuration
     
     
     
    boolean
     
    void
    setSaxonConfiguration(net.sf.saxon.Configuration saxonConfiguration)
    To use a custom Saxon configuration
    void
    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.
    void
    setSecureProcessing(boolean secureProcessing)
    Feature for XML secure processing (see javax.xml.XMLConstants).

    Methods inherited from class org.apache.camel.component.xslt.XsltComponent

    createEndpoint, getTransformerFactoryClass, getTransformerFactoryConfigurationStrategy, getUriResolver, getUriResolverFactory, isAllowTemplateFromHeader, isContentCache, setAllowTemplateFromHeader, setContentCache, setTransformerFactoryClass, setTransformerFactoryConfigurationStrategy, setUriResolver, setUriResolverFactory

    Methods inherited from class org.apache.camel.support.DefaultComponent

    afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, 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, doStart, doStop, 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
  • Constructor Details

    • XsltSaxonComponent

      public XsltSaxonComponent()
  • Method Details

    • 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 use commas 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 use commas to separate multiple values to lookup.
    • isSecureProcessing

      public boolean isSecureProcessing()
    • setSecureProcessing

      public void setSecureProcessing(boolean secureProcessing)
      Feature for XML secure processing (see javax.xml.XMLConstants). This is enabled by default. However, when using Saxon Professional you may need to turn this off to allow Saxon to be able to use Java extension functions.
    • 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