@UriEndpoint(scheme="velocity", title="Velocity", syntax="velocity:resourceUri", producerOnly=true, label="transformation") public class VelocityEndpoint extends ResourceEndpoint
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
VelocityEndpoint() |
VelocityEndpoint(String uri,
VelocityComponent component,
String resourceUri) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
VelocityEndpoint |
findOrCreateEndpoint(String uri,
String newResourceUri) |
String |
getEncoding() |
ExchangePattern |
getExchangePattern()
Returns the default exchange pattern to use when creating an exchange.
|
String |
getPropertiesFile() |
boolean |
isLoaderCache() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
protected void |
onExchange(Exchange exchange) |
void |
setEncoding(String encoding)
Character encoding of the resource content.
|
void |
setLoaderCache(boolean loaderCache)
Enables / disables the velocity resource loader cache which is enabled by default
|
void |
setPropertiesFile(String file)
The URI of the properties file which is used for VelocityEngine initialization.
|
void |
setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine) |
clearContentCache, getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getResourceUri, getState, isContentCache, isContentCacheCleared, loadResource, setContentCache, setResourceUricreatePollingConsumer, createProcessor, createProducer, getProcessor, setProcessorcreateConsumerconfigurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic VelocityEndpoint()
public VelocityEndpoint(String uri, VelocityComponent component, String resourceUri)
public boolean isSingleton()
IsSingletonisSingleton in interface IsSingletonisSingleton in class ProcessorEndpointpublic ExchangePattern getExchangePattern()
DefaultEndpointgetExchangePattern in class DefaultEndpointprotected String createEndpointUri()
DefaultEndpointcreateEndpointUri in class DefaultEndpointpublic void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
public boolean isLoaderCache()
public void setLoaderCache(boolean loaderCache)
public void setEncoding(String encoding)
public String getEncoding()
public void setPropertiesFile(String file)
public String getPropertiesFile()
public VelocityEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
protected void onExchange(Exchange exchange) throws Exception
onExchange in class ProcessorEndpointExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.