@UriEndpoint(scheme="velocity",
title="Velocity",
syntax="velocity:resourceUri",
producerOnly=true,
label="transformation")
public class VelocityEndpoint
extends org.apache.camel.component.ResourceEndpoint
| Constructor and Description |
|---|
VelocityEndpoint() |
VelocityEndpoint(String uri,
VelocityComponent component,
String resourceUri) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createEndpointUri() |
VelocityEndpoint |
findOrCreateEndpoint(String uri,
String newResourceUri) |
String |
getEncoding() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
String |
getPropertiesFile() |
boolean |
isLoaderCache() |
boolean |
isSingleton() |
protected void |
onExchange(org.apache.camel.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, setProcessorconfigurePollingConsumer, 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, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic VelocityEndpoint()
public VelocityEndpoint(String uri, VelocityComponent component, String resourceUri)
public boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonisSingleton in class org.apache.camel.impl.ProcessorEndpointpublic org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern in class org.apache.camel.impl.DefaultEndpointprotected String createEndpointUri()
createEndpointUri in class org.apache.camel.impl.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)
Apache Camel