Class 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
    • 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
      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 name
      void 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 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

      • XsltComponent

        public XsltComponent()
    • Method Detail

      • 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'.
      • 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.
      • 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 class org.apache.camel.support.DefaultComponent
        Throws:
        Exception