public class MustacheComponent
extends org.apache.camel.impl.UriEndpointComponent
MustacheEndpoint
.
URI pattern: mustache://template_name.mustache
Supports parameters:
Constructor and Description |
---|
MustacheComponent() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
com.github.mustachejava.MustacheFactory |
getMustacheFactory() |
boolean |
isAllowContextMapAll() |
boolean |
isAllowTemplateFromHeader() |
void |
setAllowContextMapAll(boolean allowContextMapAll)
Sets whether the context map should allow access to all details.
|
void |
setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
Whether to allow to use resource template from header or not (default false).
|
void |
setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)
To use a custom
MustacheFactory |
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isResolvePropertyPlaceholders, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
public com.github.mustachejava.MustacheFactory getMustacheFactory()
public void setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)
MustacheFactory
public boolean isAllowTemplateFromHeader()
public void setAllowTemplateFromHeader(boolean allowTemplateFromHeader)
public boolean isAllowContextMapAll()
public void setAllowContextMapAll(boolean allowContextMapAll)
Apache Camel