org.apache.camel.component.atom
Class AtomEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<E>
          extended by org.apache.camel.impl.DefaultPollingEndpoint<Exchange>
              extended by org.apache.camel.component.atom.AtomEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint<Exchange>

public class AtomEndpoint
extends DefaultPollingEndpoint<Exchange>

An Atom Endpoint.

Version:
$Revision: 656933 $

Field Summary
static String HEADER_ATOM_FEED
          Header key for the Feed object is stored on the in message on the exchange.
 
Constructor Summary
AtomEndpoint(String endpointUri)
           
AtomEndpoint(String endpointUri, AtomComponent component, String atomUri)
           
AtomEndpoint(String endpointUri, String atomUri)
           
 
Method Summary
 Consumer<Exchange> createConsumer(Processor processor)
           
 Exchange createExchange(org.apache.abdera.model.Feed feed)
          Creates an Exchange with the entries as the in body.
 Exchange createExchange(org.apache.abdera.model.Feed feed, org.apache.abdera.model.Entry entry)
          Creates an Exchange with the given entry as the in body.
 Producer<Exchange> createProducer()
           
 String getAtomUri()
           
 Date getLastUpdate()
           
 boolean isFilter()
           
 boolean isSingleton()
           
 boolean isSplitEntries()
           
 void setAtomUri(String atomUri)
           
 void setFilter(boolean filter)
          Sets wether 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 setSplitEntries(boolean splitEntries)
          Sets whether or not entries should be sent individually or whether the entire feed should be sent as a single message
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_ATOM_FEED

public static final String HEADER_ATOM_FEED
Header key for the Feed object is stored on the in message on the exchange.

See Also:
Constant Field Values
Constructor Detail

AtomEndpoint

public AtomEndpoint(String endpointUri,
                    AtomComponent component,
                    String atomUri)

AtomEndpoint

public AtomEndpoint(String endpointUri,
                    String atomUri)

AtomEndpoint

public AtomEndpoint(String endpointUri)
Method Detail

isSingleton

public boolean isSingleton()

createProducer

public Producer<Exchange> createProducer()
                                  throws Exception
Throws:
Exception

createConsumer

public Consumer<Exchange> createConsumer(Processor processor)
                                  throws Exception
Specified by:
createConsumer in interface Endpoint<Exchange>
Overrides:
createConsumer in class DefaultPollingEndpoint<Exchange>
Throws:
Exception

createExchange

public Exchange createExchange(org.apache.abdera.model.Feed feed)
Creates an Exchange with the entries as the in body.

Parameters:
feed - the atom feed
Returns:
the created exchange

createExchange

public Exchange createExchange(org.apache.abdera.model.Feed feed,
                               org.apache.abdera.model.Entry entry)
Creates an Exchange with the given entry as the in body.

Parameters:
feed - the atom feed
entry - the entry as the in body
Returns:
the created exchange

getAtomUri

public String getAtomUri()

setAtomUri

public void setAtomUri(String atomUri)

isSplitEntries

public boolean isSplitEntries()

setSplitEntries

public 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


getLastUpdate

public Date getLastUpdate()

setLastUpdate

public void setLastUpdate(Date lastUpdate)
Sets the timestamp to be used for filtering entries from the atom feeds. This options is only in conjunction with the splitEntries.


isFilter

public boolean isFilter()

setFilter

public void setFilter(boolean filter)
Sets wether to use filtering or not of the entries.



Copyright © 2009 Apache Software Foundation. All Rights Reserved.