org.apache.camel.component.mustache
Class MustacheEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
                  extended by org.apache.camel.impl.ProcessorEndpoint
                      extended by org.apache.camel.component.ResourceEndpoint
                          extended by org.apache.camel.component.mustache.MustacheEndpoint
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 MustacheEndpoint
extends org.apache.camel.component.ResourceEndpoint

Represents a Camel Mustache endpoint.


Field Summary
 
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
 
Constructor Summary
MustacheEndpoint()
           
MustacheEndpoint(String endpointUri, org.apache.camel.Component component, String resourceUri)
           
 
Method Summary
 void clearContentCache()
           
protected  String createEndpointUri()
           
 String getEncoding()
           
 String getEndDelimiter()
           
 org.apache.camel.ExchangePattern getExchangePattern()
           
 com.github.mustachejava.MustacheFactory getMustacheFactory()
           
 String getResourceUri()
           
 String getStartDelimiter()
           
 boolean isSingleton()
           
protected  void onExchange(org.apache.camel.Exchange exchange)
           
 void setEncoding(String encoding)
           
 void setEndDelimiter(String endDelimiter)
           
 void setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)
           
 void setStartDelimiter(String startDelimiter)
           
 
Methods inherited from class org.apache.camel.component.ResourceEndpoint
getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getState, isContentCache, isContentCacheCleared, 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
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

MustacheEndpoint

public MustacheEndpoint()

MustacheEndpoint

public MustacheEndpoint(String endpointUri,
                        org.apache.camel.Component component,
                        String resourceUri)
Method Detail

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

clearContentCache

public void clearContentCache()
Specified by:
clearContentCache in interface org.apache.camel.api.management.mbean.ManagedResourceEndpointMBean
Overrides:
clearContentCache in class org.apache.camel.component.ResourceEndpoint

onExchange

protected void onExchange(org.apache.camel.Exchange exchange)
                   throws Exception
Overrides:
onExchange in class org.apache.camel.impl.ProcessorEndpoint
Throws:
Exception

getResourceUri

public String getResourceUri()
Overrides:
getResourceUri in class org.apache.camel.component.ResourceEndpoint

getMustacheFactory

public com.github.mustachejava.MustacheFactory getMustacheFactory()

setMustacheFactory

public void setMustacheFactory(com.github.mustachejava.MustacheFactory mustacheFactory)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getStartDelimiter

public String getStartDelimiter()

setStartDelimiter

public void setStartDelimiter(String startDelimiter)

getEndDelimiter

public String getEndDelimiter()

setEndDelimiter

public void setEndDelimiter(String endDelimiter)


Apache Camel