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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureEndpoint(org.apache.camel.Endpoint endpoint, String remaining, Map<String, Object> parameters) protected XsltSaxonEndpointcreateXsltEndpoint(String uri) net.sf.saxon.ConfigurationbooleanvoidsetSaxonConfiguration(net.sf.saxon.Configuration saxonConfiguration) To use a custom Saxon configurationvoidsetSaxonConfigurationProperties(Map<String, Object> configurationProperties) To set custom Saxon configuration propertiesvoidsetSaxonExtensionFunctions(String extensionFunctions) Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition.voidsetSaxonExtensionFunctions(List<Object> extensionFunctions) Allows you to use a custom net.sf.saxon.lib.ExtensionFunctionDefinition.voidsetSecureProcessing(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, setUriResolverFactoryMethods 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, validateURIMethods 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, 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
-
Constructor Details
-
XsltSaxonComponent
public XsltSaxonComponent()
-
-
Method Details
-
getSaxonExtensionFunctions
-
setSaxonExtensionFunctions
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
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
-
setSaxonConfigurationProperties
To set custom Saxon configuration properties -
createXsltEndpoint
- Overrides:
createXsltEndpointin classorg.apache.camel.component.xslt.XsltComponent
-
configureEndpoint
protected void configureEndpoint(org.apache.camel.Endpoint endpoint, String remaining, Map<String, Object> parameters) throws Exception- Overrides:
configureEndpointin classorg.apache.camel.component.xslt.XsltComponent- Throws:
Exception
-