org.apache.camel.component.freemarker
Class FreemarkerEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
                  extended by org.apache.camel.impl.ProcessorEndpoint
                      extended by org.apache.camel.component.ResourceBasedEndpoint
                          extended by org.apache.camel.component.freemarker.FreemarkerEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId

public class FreemarkerEndpoint
extends ResourceBasedEndpoint

Freemarker endpoint


Field Summary
 
Fields inherited from class org.apache.camel.component.ResourceBasedEndpoint
log
 
Constructor Summary
FreemarkerEndpoint()
           
FreemarkerEndpoint(String uri, Component component, String resourceUri)
           
 
Method Summary
protected  String createEndpointUri()
          A factory method to lazily create the endpointUri if none is specified
 FreemarkerEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
           
 freemarker.template.Configuration getConfiguration()
           
 String getEncoding()
           
 ExchangePattern getExchangePattern()
          Returns the default exchange pattern to use for createExchange().
 boolean isSingleton()
          Whether this class supports being singleton or not.
protected  void onExchange(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.
 
Methods inherited from class org.apache.camel.component.ResourceBasedEndpoint
getResource, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getResourceLoader, getResourceUri, isContentCache, setContentCache, setResourceLoader, setResourceUri
 
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessor
 
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumer
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

FreemarkerEndpoint

public FreemarkerEndpoint()

FreemarkerEndpoint

public FreemarkerEndpoint(String uri,
                          Component component,
                          String resourceUri)
Method Detail

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Specified by:
isSingleton in interface IsSingleton
Overrides:
isSingleton in class ProcessorEndpoint
Returns:
true to be a single shared instance, false to create new instances.

getExchangePattern

public ExchangePattern getExchangePattern()
Description copied from class: DefaultEndpoint
Returns the default exchange pattern to use for createExchange().

Overrides:
getExchangePattern in class DefaultEndpoint
See Also:
DefaultEndpoint.setExchangePattern(ExchangePattern exchangePattern)

createEndpointUri

protected String createEndpointUri()
Description copied from class: DefaultEndpoint
A factory method to lazily create the endpointUri if none is specified

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