org.apache.camel.component.xslt
Class XsltEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
                  extended by org.apache.camel.impl.ProcessorEndpoint
                      extended by org.apache.camel.component.xslt.XsltEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId, StatefulService, SuspendableService

@ManagedResource(description="Managed XsltEndpoint")
public class XsltEndpoint
extends ProcessorEndpoint


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
XsltEndpoint(String endpointUri, Component component, XsltBuilder xslt, String resourceUri, boolean cacheStylesheet)
           
 
Method Summary
 void clearCachedStylesheet()
           
 XsltEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
           
 boolean isCacheStylesheet()
           
protected  void onExchange(Exchange exchange)
           
 
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, isSingleton, setProcessor
 
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumer
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

XsltEndpoint

public XsltEndpoint(String endpointUri,
                    Component component,
                    XsltBuilder xslt,
                    String resourceUri,
                    boolean cacheStylesheet)
             throws Exception
Throws:
Exception
Method Detail

clearCachedStylesheet

@ManagedOperation(description="Clears the cached XSLT stylesheet, forcing to re-load the stylesheet on next request")
public void clearCachedStylesheet()

isCacheStylesheet

@ManagedAttribute(description="Whether the XSLT stylesheet is cached")
public boolean isCacheStylesheet()

findOrCreateEndpoint

public XsltEndpoint findOrCreateEndpoint(String uri,
                                         String newResourceUri)

onExchange

protected void onExchange(Exchange exchange)
                   throws Exception
Overrides:
onExchange in class ProcessorEndpoint
Throws:
Exception


Apache CAMEL