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) |
void |
setLoaderCache(boolean loaderCache)
Enables / disables the velocity resource loader cache which is enabled by default
|
void |
setPropertiesFile(String file) |
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, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, doStart, doStop, 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()
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)
loaderCache - a flag to enable/disable the cachepublic void setEncoding(String encoding)
public String getEncoding()
public void setPropertiesFile(String file)
public String getPropertiesFile()
public VelocityEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
Apache Camel