org.apache.camel.component.velocity
Class VelocityEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.ScheduledPollEndpoint<E>
org.apache.camel.impl.DefaultPollingEndpoint<Exchange>
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.ResourceBasedEndpoint
org.apache.camel.component.velocity.VelocityEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint<Exchange>
public class VelocityEndpoint
- extends ResourceBasedEndpoint
- Version:
- $Revision: 760780 $
| 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 |
VelocityEndpoint
public VelocityEndpoint(String uri,
VelocityComponent component,
String resourceUri,
Map parameters)
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
Copyright © 2009 Apache Software Foundation. All Rights Reserved.