@UriEndpoint(scheme="chunk", title="Chunk", syntax="chunk:resourceUri", producerOnly=true, label="transformation") public class ChunkEndpoint extends ResourceEndpoint
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ChunkEndpoint() |
ChunkEndpoint(String endpointUri,
Component component,
String resourceUri) |
Modifier and Type | Method and Description |
---|---|
void |
clearContentCache() |
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
String |
getEncoding() |
ExchangePattern |
getExchangePattern()
Returns the default exchange pattern to use when creating an exchange.
|
String |
getExtension() |
String |
getResourceUri() |
String |
getThemeFolder() |
String |
getThemeLayer() |
String |
getThemeSubfolder() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
protected void |
onExchange(Exchange exchange) |
void |
setEncoding(String encoding) |
void |
setExtension(String extension) |
void |
setThemeFolder(String themeFolder) |
void |
setThemeLayer(String themeLayer) |
void |
setThemeSubfolder(String themeSubfolder) |
getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getState, isContentCache, isContentCacheCleared, loadResource, setContentCache, setResourceUri
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessor
createConsumer
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
isSingleton
in class ProcessorEndpoint
public ExchangePattern getExchangePattern()
DefaultEndpoint
getExchangePattern
in class DefaultEndpoint
protected String createEndpointUri()
DefaultEndpoint
createEndpointUri
in class DefaultEndpoint
public void clearContentCache()
clearContentCache
in interface ManagedResourceEndpointMBean
clearContentCache
in class ResourceEndpoint
protected void onExchange(Exchange exchange) throws Exception
onExchange
in class ProcessorEndpoint
Exception
public String getResourceUri()
getResourceUri
in class ResourceEndpoint
public String getEncoding()
public void setEncoding(String encoding)
public String getThemeFolder()
public void setThemeFolder(String themeFolder)
public String getThemeSubfolder()
public void setThemeSubfolder(String themeSubfolder)
public String getThemeLayer()
public void setThemeLayer(String themeLayer)
public String getExtension()
public void setExtension(String extension)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class ScheduledPollEndpoint
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class ScheduledPollEndpoint
Exception
ServiceSupport.doStart()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.