@UriEndpoint(firstVersion="1.2.0",
scheme="velocity",
title="Velocity",
syntax="velocity:resourceUri",
producerOnly=true,
category=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 |
isAllowTemplateFromHeader() |
boolean |
isLoaderCache() |
protected void |
onExchange(org.apache.camel.Exchange exchange) |
void |
setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
Whether to allow to use resource template from header or not (default false).
|
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, isAllowContextMapAll, isContentCache, isContentCacheCleared, loadResource, setAllowContextMapAll, setContentCache, setResourceUri
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessor
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configureExchange, configurePollingConsumer, createAsyncProducer, createExchange, createExchange, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public VelocityEndpoint()
public VelocityEndpoint(String uri, VelocityComponent component, String resourceUri)
public org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern
in class org.apache.camel.support.DefaultEndpoint
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.support.DefaultEndpoint
public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
public boolean isAllowTemplateFromHeader()
public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
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