@UriEndpoint(firstVersion="2.10.0",
scheme="freemarker",
title="Freemarker",
syntax="freemarker:resourceUri",
producerOnly=true,
label="transformation")
public class FreemarkerEndpoint
extends org.apache.camel.component.ResourceEndpoint
| Constructor and Description |
|---|
FreemarkerEndpoint() |
FreemarkerEndpoint(String uri,
org.apache.camel.Component component,
String resourceUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContentCache() |
protected String |
createEndpointUri() |
FreemarkerEndpoint |
findOrCreateEndpoint(String uri,
String newResourceUri) |
freemarker.template.Configuration |
getConfiguration() |
String |
getEncoding() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
int |
getTemplateUpdateDelay() |
boolean |
isSingleton() |
protected void |
onExchange(org.apache.camel.Exchange exchange) |
void |
setConfiguration(freemarker.template.Configuration configuration)
Sets the Freemarker configuration to use
|
void |
setEncoding(String encoding)
Sets the encoding to be used for loading the template file.
|
void |
setTemplateUpdateDelay(int templateUpdateDelay)
Number of seconds the loaded template resource will remain in the cache.
|
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, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic 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 setEncoding(String encoding)
public String getEncoding()
public int getTemplateUpdateDelay()
public void setTemplateUpdateDelay(int templateUpdateDelay)
public freemarker.template.Configuration getConfiguration()
public void setConfiguration(freemarker.template.Configuration configuration)
public FreemarkerEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
public void clearContentCache()
clearContentCache in interface org.apache.camel.api.management.mbean.ManagedResourceEndpointMBeanclearContentCache in class org.apache.camel.component.ResourceEndpointApache Camel