Package org.apache.camel.component.xslt
Class XsltComponent
- 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
-
- 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") public class XsltComponent extends org.apache.camel.support.DefaultComponent
The XSLT Component is for performing XSLT transformations of messages
-
-
Constructor Summary
Constructors Constructor Description XsltComponent()
-
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 org.apache.camel.Endpoint
createEndpoint(String uri, String remaining, Map<String,Object> parameters)
protected XsltEndpoint
createXsltEndpoint(String uri)
String
getTransformerFactoryClass()
TransformerFactoryConfigurationStrategy
getTransformerFactoryConfigurationStrategy()
URIResolver
getUriResolver()
XsltUriResolverFactory
getUriResolverFactory()
boolean
isContentCache()
void
setContentCache(boolean contentCache)
Cache for the resource content (the stylesheet file) when it is loaded.void
setTransformerFactoryClass(String transformerFactoryClass)
To use a custom XSLT transformer factory, specified as a FQN class namevoid
setTransformerFactoryConfigurationStrategy(TransformerFactoryConfigurationStrategy transformerFactoryConfigurationStrategy)
A configuration strategy to apply on freshly created instances of TransformerFactory.void
setUriResolver(URIResolver uriResolver)
To use a custom UriResolver.void
setUriResolverFactory(XsltUriResolverFactory uriResolverFactory)
To use a custom UriResolver which depends on a dynamic endpoint resource URI.-
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
-
-
-
-
Method Detail
-
getUriResolverFactory
public XsltUriResolverFactory getUriResolverFactory()
-
setUriResolverFactory
public void setUriResolverFactory(XsltUriResolverFactory uriResolverFactory)
To use a custom UriResolver which depends on a dynamic endpoint resource URI. Should not be used together with the option 'uriResolver'.
-
getUriResolver
public URIResolver getUriResolver()
-
setUriResolver
public void setUriResolver(URIResolver uriResolver)
To use a custom UriResolver. Should not be used together with the option 'uriResolverFactory'.
-
isContentCache
public boolean isContentCache()
-
setContentCache
public void setContentCache(boolean contentCache)
Cache for the resource content (the stylesheet file) when it is loaded. If set to false Camel will reload the stylesheet file on each message processing. This is good for development. A cached stylesheet can be forced to reload at runtime via JMX using the clearCachedStylesheet operation.
-
getTransformerFactoryConfigurationStrategy
public TransformerFactoryConfigurationStrategy getTransformerFactoryConfigurationStrategy()
-
setTransformerFactoryConfigurationStrategy
public void setTransformerFactoryConfigurationStrategy(TransformerFactoryConfigurationStrategy transformerFactoryConfigurationStrategy)
A configuration strategy to apply on freshly created instances of TransformerFactory.
-
getTransformerFactoryClass
public String getTransformerFactoryClass()
-
setTransformerFactoryClass
public void setTransformerFactoryClass(String transformerFactoryClass)
To use a custom XSLT transformer factory, specified as a FQN class name
-
createEndpoint
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
- Specified by:
createEndpoint
in classorg.apache.camel.support.DefaultComponent
- Throws:
Exception
-
createXsltEndpoint
protected XsltEndpoint createXsltEndpoint(String uri)
-
-