|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.component.feed.FeedEndpoint
public abstract class FeedEndpoint
A base class for feed (atom, RSS) endpoints.
Field Summary | |
---|---|
protected String |
feedUri
|
protected boolean |
filter
|
protected Date |
lastUpdate
|
protected boolean |
splitEntries
|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
FeedEndpoint()
|
|
FeedEndpoint(String endpointUri,
FeedComponent component,
String feedUri)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
---|
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointConfiguration, getEndpointUri, getExchangePattern, getId, hashCode, isSynchronous, setCamelContext, setEndpointConfiguration, 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 class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Field Detail |
---|
protected String feedUri
protected boolean splitEntries
protected Date lastUpdate
protected boolean filter
Constructor Detail |
---|
public FeedEndpoint()
public FeedEndpoint(String endpointUri, FeedComponent component, String feedUri)
Method Detail |
---|
public boolean isSingleton()
public org.apache.camel.Producer createProducer() throws Exception
Exception
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
createConsumer
in class org.apache.camel.impl.DefaultPollingEndpoint
Exception
protected abstract FeedPollingConsumer createPollingConsumer(FeedEndpoint feedEndpoint, org.apache.camel.Processor processor)
protected abstract FeedPollingConsumer createEntryPollingConsumer(FeedEndpoint feedEndpoint, org.apache.camel.Processor processor, boolean filter, Date lastUpdate, boolean throttleEntries)
protected org.apache.camel.Exchange createExchangeWithFeedHeader(Object feed, String header)
public abstract org.apache.camel.Exchange createExchange(Object feed)
feed
- the atom feed
public abstract org.apache.camel.Exchange createExchange(Object feed, Object entry)
feed
- the feedentry
- the entry as the in body
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
public String getEndpointKey()
getEndpointKey
in interface org.apache.camel.Endpoint
getEndpointKey
in class org.apache.camel.impl.DefaultEndpoint
public 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.Endpoint
isLenientProperties
in class org.apache.camel.impl.DefaultEndpoint
public void setThrottleEntries(boolean throttleEntries)
public boolean isThrottleEntries()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |