@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 |
isAllowTemplateFromHeader() |
boolean |
isSingleton() |
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 |
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, isAllowContextMapAll, isContentCache, isContentCacheCleared, loadResource, setAllowContextMapAll, setContentCache, setResourceUri
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessor
configurePollingConsumer, 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, setUseFixedDelay
configureConsumer, 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, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class org.apache.camel.impl.ProcessorEndpoint
public org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern
in class org.apache.camel.impl.DefaultEndpoint
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
public boolean isAllowTemplateFromHeader()
public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
public 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.ManagedResourceEndpointMBean
clearContentCache
in class org.apache.camel.component.ResourceEndpoint
Apache Camel