@ManagedResource(description="Managed XsltEndpoint") @UriEndpoint(scheme="xslt") public class XsltEndpoint extends ProcessorEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
XsltEndpoint(String endpointUri,
Component component,
XsltBuilder xslt,
String resourceUri,
boolean cacheStylesheet) |
Modifier and Type | Method and Description |
---|---|
void |
clearCachedStylesheet() |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
XsltEndpoint |
findOrCreateEndpoint(String uri,
String newResourceUri) |
String |
getCamelId() |
String |
getCamelManagementName() |
String |
getState() |
boolean |
isCacheStylesheet() |
protected void |
loadResource(String resourceUri)
Loads the resource.
|
protected void |
onExchange(Exchange exchange) |
createPollingConsumer, createProcessor, createProducer, getProcessor, isSingleton, setProcessor
createConsumer
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public XsltEndpoint(String endpointUri, Component component, XsltBuilder xslt, String resourceUri, boolean cacheStylesheet) throws Exception
Exception
@ManagedOperation(description="Clears the cached XSLT stylesheet, forcing to re-load the stylesheet on next request") public void clearCachedStylesheet()
@ManagedAttribute(description="Whether the XSLT stylesheet is cached") public boolean isCacheStylesheet()
@ManagedAttribute(description="Endpoint State") public String getState()
@ManagedAttribute(description="Camel ID") public String getCamelId()
@ManagedAttribute(description="Camel ManagementName") public String getCamelManagementName()
public XsltEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
protected void onExchange(Exchange exchange) throws Exception
onExchange
in class ProcessorEndpoint
Exception
protected void loadResource(String resourceUri) throws TransformerException, IOException
resourceUri
- the resource to loadTransformerException
- is thrown if error loading resourceIOException
- is thrown if error loading resourceprotected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class DefaultEndpoint
Exception
ServiceSupport.doStart()
Apache Camel