@UriEndpoint(firstVersion="2.12.0",
scheme="mustache",
title="Mustache",
syntax="mustache:resourceUri",
producerOnly=true,
category=TRANSFORMATION)
public class MustacheEndpoint
extends org.apache.camel.component.ResourceEndpoint
| Constructor and Description |
|---|
MustacheEndpoint() |
MustacheEndpoint(String endpointUri,
org.apache.camel.Component component,
String resourceUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearContentCache() |
protected String |
createEndpointUri() |
String |
getEncoding() |
String |
getEndDelimiter() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
com.github.mustachejava.MustacheFactory |
getMustacheFactory() |
String |
getResourceUri() |
String |
getStartDelimiter() |
boolean |
isAllowTemplateFromHeader() |
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 |
setEndDelimiter(String endDelimiter)
Characters used to mark template code end.
|
void |
setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)
To use a custom
MustacheFactory |
void |
setStartDelimiter(String startDelimiter)
Characters used to mark template code beginning.
|
getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getState, isAllowContextMapAll, isContentCache, isContentCacheCleared, loadResource, setAllowContextMapAll, setContentCache, setResourceUricreatePollingConsumer, createProcessor, createProducer, getProcessor, setProcessorconfigureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, 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, setUseFixedDelayconfigurePollingConsumer, createAsyncProducer, createExchange, createExchange, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, 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, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern in class org.apache.camel.support.DefaultEndpointprotected String createEndpointUri()
createEndpointUri in class org.apache.camel.support.DefaultEndpointpublic void clearContentCache()
clearContentCache in interface org.apache.camel.api.management.mbean.ManagedResourceEndpointMBeanclearContentCache in class org.apache.camel.component.ResourceEndpointprotected void onExchange(org.apache.camel.Exchange exchange)
throws Exception
onExchange in class org.apache.camel.support.ProcessorEndpointExceptionpublic String getResourceUri()
getResourceUri in class org.apache.camel.component.ResourceEndpointpublic com.github.mustachejava.MustacheFactory getMustacheFactory()
public void setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)
MustacheFactorypublic String getEncoding()
public void setEncoding(String encoding)
public String getStartDelimiter()
public void setStartDelimiter(String startDelimiter)
public String getEndDelimiter()
public void setEndDelimiter(String endDelimiter)
public boolean isAllowTemplateFromHeader()
public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
Apache Camel