public abstract class FeedEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected String |
feedUri |
protected boolean |
filter |
protected Date |
lastUpdate |
protected boolean |
splitEntries |
| Constructor and Description |
|---|
FeedEndpoint() |
FeedEndpoint(String endpointUri,
FeedComponent component,
String feedUri) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
protected abstract FeedPollingConsumer |
createEntryPollingConsumer(FeedEndpoint feedEndpoint,
org.apache.camel.Processor processor,
boolean filter,
Date lastUpdate,
boolean throttleEntries) |
abstract org.apache.camel.Exchange |
createExchange(Object feed)
Creates an Exchange with the entries as the in body.
|
abstract org.apache.camel.Exchange |
createExchange(Object feed,
Object entry)
Creates an Exchange with the given entry as the in body.
|
protected org.apache.camel.Exchange |
createExchangeWithFeedHeader(Object feed,
String header) |
protected abstract FeedPollingConsumer |
createPollingConsumer(FeedEndpoint feedEndpoint,
org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getEndpointKey() |
String |
getFeedUri() |
Date |
getLastUpdate() |
boolean |
isFeedHeader() |
boolean |
isFilter() |
boolean |
isLenientProperties() |
boolean |
isSingleton() |
boolean |
isSortEntries() |
boolean |
isSplitEntries() |
boolean |
isThrottleEntries() |
void |
setFeedHeader(boolean feedHeader)
Sets whether to add the feed object as a header
|
void |
setFeedUri(String feedUri) |
void |
setFilter(boolean filter)
Sets whether to use filtering or not of the entries.
|
void |
setLastUpdate(Date lastUpdate)
Sets the timestamp to be used for filtering entries from the atom feeds.
|
void |
setSortEntries(boolean sortEntries)
Sets whether to sort entries by published date.
|
void |
setSplitEntries(boolean splitEntries)
Sets whether or not entries should be sent individually or whether the entire
feed should be sent as a single message
|
void |
setThrottleEntries(boolean throttleEntries)
Sets whether all entries identified in a single feed poll should be delivered immediately.
|
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, 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, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend@UriPath @Metadata(required="true") protected String feedUri
@UriParam(defaultValue="true") protected boolean splitEntries
@UriParam protected Date lastUpdate
@UriParam(defaultValue="true") protected boolean filter
public FeedEndpoint()
public FeedEndpoint(String endpointUri, FeedComponent component, String feedUri)
public boolean isSingleton()
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.impl.DefaultPollingEndpointExceptionprotected abstract FeedPollingConsumer createPollingConsumer(FeedEndpoint feedEndpoint, org.apache.camel.Processor processor) throws Exception
Exceptionprotected abstract FeedPollingConsumer createEntryPollingConsumer(FeedEndpoint feedEndpoint, org.apache.camel.Processor processor, boolean filter, Date lastUpdate, boolean throttleEntries) throws Exception
Exceptionprotected org.apache.camel.Exchange createExchangeWithFeedHeader(Object feed, String header)
public abstract org.apache.camel.Exchange createExchange(Object feed)
feed - the atom feedpublic abstract org.apache.camel.Exchange createExchange(Object feed, Object entry)
feed - the feedentry - the entry as the in bodyprotected String createEndpointUri()
createEndpointUri in class org.apache.camel.impl.DefaultEndpointpublic String getEndpointKey()
getEndpointKey in interface org.apache.camel.EndpointgetEndpointKey in class org.apache.camel.impl.DefaultEndpointpublic String getFeedUri()
public void setFeedUri(String feedUri)
public boolean isSplitEntries()
public void setSplitEntries(boolean splitEntries)
public Date getLastUpdate()
public void setLastUpdate(Date lastUpdate)
public boolean isFilter()
public void setFilter(boolean filter)
public void setFeedHeader(boolean feedHeader)
public boolean isFeedHeader()
public void setSortEntries(boolean sortEntries)
public boolean isSortEntries()
public boolean isLenientProperties()
isLenientProperties in interface org.apache.camel.EndpointisLenientProperties in class org.apache.camel.impl.DefaultEndpointpublic void setThrottleEntries(boolean throttleEntries)
public boolean isThrottleEntries()
Apache Camel