org.apache.camel.component.velocity
Class VelocityEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<E>
          extended by org.apache.camel.impl.DefaultPollingEndpoint<Exchange>
              extended by org.apache.camel.impl.ProcessorEndpoint
                  extended by org.apache.camel.component.ResourceBasedEndpoint
                      extended by org.apache.camel.component.velocity.VelocityEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint<Exchange>

public class VelocityEndpoint
extends ResourceBasedEndpoint

Version:
$Revision: 828294 $

Field Summary
 
Fields inherited from class org.apache.camel.component.ResourceBasedEndpoint
log
 
Constructor Summary
VelocityEndpoint(String uri, VelocityComponent component, String resourceUri, Map parameters)
           
 
Method Summary
 String getEncoding()
           
 ExchangePattern getExchangePattern()
           
 boolean isLoaderCache()
           
 boolean isSingleton()
           
protected  void onExchange(Exchange exchange)
           
 void setEncoding(String encoding)
           
 void setLoaderCache(boolean loaderCache)
          Enables / disables the velocity resource loader cache which is enabled by default
 void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
           
 
Methods inherited from class org.apache.camel.component.ResourceBasedEndpoint
getResource, getResourceAsInputStream, getResourceLoader, getResourceUri, isContentCache, setContentCache, setResourceLoader
 
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor
 
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
convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VelocityEndpoint

public VelocityEndpoint(String uri,
                        VelocityComponent component,
                        String resourceUri,
                        Map parameters)
Method Detail

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface Endpoint<Exchange>
Overrides:
isSingleton in class ProcessorEndpoint

getExchangePattern

public ExchangePattern getExchangePattern()
Overrides:
getExchangePattern in class DefaultEndpoint<Exchange>

setVelocityEngine

public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)

isLoaderCache

public boolean isLoaderCache()

setLoaderCache

public void setLoaderCache(boolean loaderCache)
Enables / disables the velocity resource loader cache which is enabled by default

Parameters:
loaderCache - a flag to enable/disable the cache

setEncoding

public void setEncoding(String encoding)

getEncoding

public String getEncoding()

onExchange

protected void onExchange(Exchange exchange)
                   throws Exception
Overrides:
onExchange in class ProcessorEndpoint
Throws:
Exception


Apache CAMEL