|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
|
| Constructor Summary | |
|---|---|
FeedEndpoint()
|
|
FeedEndpoint(String endpointUri)
|
|
FeedEndpoint(String endpointUri,
FeedComponent component,
String feedUri)
|
|
FeedEndpoint(String endpointUri,
String feedUri)
|
|
| Method Summary | |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified |
protected abstract FeedPollingConsumer |
createEntryPollingConsumer(FeedEndpoint feedEndpoint,
Processor processor,
boolean filter,
Date lastUpdate,
boolean throttleEntries)
|
abstract Exchange |
createExchange(Object feed)
Creates an Exchange with the entries as the in body. |
abstract Exchange |
createExchange(Object feed,
Object entry)
Creates an Exchange with the given entry as the in body. |
protected Exchange |
createExchangeWithFeedHeader(Object feed,
String header)
|
protected abstract FeedPollingConsumer |
createPollingConsumer(FeedEndpoint feedEndpoint,
Processor processor)
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint |
String |
getEndpointKey()
Returns a string key of this endpoint. |
String |
getFeedUri()
|
Date |
getLastUpdate()
|
boolean |
isFeedHeader()
|
boolean |
isFilter()
|
boolean |
isLenientProperties()
Should all properties be known or does the endpoint allow unknown options? lenient = false means that the endpoint should validate that all given options is known and configured properly. |
boolean |
isSingleton()
Whether this class supports being singleton or not. |
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 |
|---|
createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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)
public FeedEndpoint(String endpointUri,
String feedUri)
public FeedEndpoint(String endpointUri)
| Method Detail |
|---|
public boolean isSingleton()
IsSingleton
public Producer createProducer()
throws Exception
Endpoint
Exception - can be thrown
public Consumer createConsumer(Processor processor)
throws Exception
Endpoint
createConsumer in interface EndpointcreateConsumer in class DefaultPollingEndpointprocessor - the given processor
Exception - can be thrown
protected abstract FeedPollingConsumer createPollingConsumer(FeedEndpoint feedEndpoint,
Processor processor)
protected abstract FeedPollingConsumer createEntryPollingConsumer(FeedEndpoint feedEndpoint,
Processor processor,
boolean filter,
Date lastUpdate,
boolean throttleEntries)
protected Exchange createExchangeWithFeedHeader(Object feed,
String header)
public abstract Exchange createExchange(Object feed)
feed - the atom feed
public abstract Exchange createExchange(Object feed,
Object entry)
feed - the feedentry - the entry as the in body
protected String createEndpointUri()
DefaultEndpoint
createEndpointUri in class DefaultEndpointpublic String getEndpointKey()
EndpointLifecycleStrategy when registering endpoint.
This allows to register different instances of endpoints with the same key.
For JMX mbeans this allows us to use the same JMX Mbean for all endpoints that are logical
the same but have different parameters. For instance the http endpoint.
getEndpointKey in interface EndpointgetEndpointKey in class 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()
Endpoint
isLenientProperties in interface EndpointisLenientProperties in class DefaultEndpointpublic void setThrottleEntries(boolean throttleEntries)
public boolean isThrottleEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||