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, Service, HasId
public class VelocityEndpoint
- extends ResourceBasedEndpoint
- Version:
- $Revision: 982894 $
| 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 |
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()
setPropertiesFile
public void setPropertiesFile(String file)
getPropertiesFile
public String getPropertiesFile()
findOrCreateEndpoint
public VelocityEndpoint findOrCreateEndpoint(String uri,
String newResourceUri)
onExchange
protected void onExchange(Exchange exchange)
throws Exception
- Overrides:
onExchange in class ProcessorEndpoint
- Throws:
Exception
Apache CAMEL