org.apache.camel.component.freemarker
Class FreemarkerEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.ResourceBasedEndpoint
org.apache.camel.component.freemarker.FreemarkerEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, HasId
public class FreemarkerEndpoint
- extends ResourceBasedEndpoint
Freemarker endpoint
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
FreemarkerEndpoint
public FreemarkerEndpoint()
FreemarkerEndpoint
public FreemarkerEndpoint(String uri,
Component component,
String resourceUri)
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface IsSingleton- Overrides:
isSingleton in class ProcessorEndpoint
getExchangePattern
public ExchangePattern getExchangePattern()
- Overrides:
getExchangePattern in class DefaultEndpoint
createEndpointUri
protected String createEndpointUri()
- Overrides:
createEndpointUri in class DefaultEndpoint
setEncoding
public void setEncoding(String encoding)
- Sets the encoding to be used for loading the template file.
getEncoding
public String getEncoding()
getConfiguration
public freemarker.template.Configuration getConfiguration()
setConfiguration
public void setConfiguration(freemarker.template.Configuration configuration)
- Sets the Freemarker configuration to use
findOrCreateEndpoint
public FreemarkerEndpoint findOrCreateEndpoint(String uri,
String newResourceUri)
onExchange
protected void onExchange(Exchange exchange)
throws Exception
- Overrides:
onExchange in class ProcessorEndpoint
- Throws:
Exception
Apache CAMEL