org.apache.camel.component.velocity
Class VelocityEndpoint
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.velocity.VelocityEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton
public class VelocityEndpoint
- extends ResourceBasedEndpoint
- Version:
- $Revision: 769448 $
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
createExchange, createExchange, createExchange, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
VelocityEndpoint
public VelocityEndpoint()
VelocityEndpoint
public VelocityEndpoint(String uri,
VelocityComponent 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
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