org.apache.camel.component.velocity
Class VelocityEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.ResourceEndpoint
org.apache.camel.component.velocity.VelocityEndpoint
- All Implemented Interfaces:
- org.apache.camel.api.management.mbean.ManagedResourceEndpointMBean, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class VelocityEndpoint
- extends org.apache.camel.component.ResourceEndpoint
Fields inherited from class org.apache.camel.component.ResourceEndpoint |
log |
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.component.ResourceEndpoint |
clearContentCache, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getResourceUri, isContentCache, loadResource, setContentCache, 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, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
VelocityEndpoint
public VelocityEndpoint()
VelocityEndpoint
public VelocityEndpoint(String uri,
VelocityComponent component,
String resourceUri)
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.apache.camel.IsSingleton
- Overrides:
isSingleton
in class org.apache.camel.impl.ProcessorEndpoint
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()
- Overrides:
getExchangePattern
in class org.apache.camel.impl.DefaultEndpoint
createEndpointUri
protected String createEndpointUri()
- Overrides:
createEndpointUri
in class org.apache.camel.impl.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(org.apache.camel.Exchange exchange)
throws Exception
- Overrides:
onExchange
in class org.apache.camel.impl.ProcessorEndpoint
- Throws:
Exception
Apache CAMEL