org.apache.camel.component.twitter
Class Twitter4JFactory

java.lang.Object
  extended by org.apache.camel.component.twitter.Twitter4JFactory

public final class Twitter4JFactory
extends Object

Maps the endpoint URI to the respective Twitter4J consumer or producer.

URI STRUCTURE:

timeline/ public home friends user (ALSO A PRODUCER) mentions retweetsofme user/ search users (DIRECT ONLY) user suggestions (DIRECT ONLY) trends/ daily weekly userlist directmessage (ALSO A PRODUCER) streaming/ filter (POLLING ONLY) sample (POLLING ONLY)


Method Summary
static Twitter4JConsumer getConsumer(TwitterEndpoint te, String uri)
           
static org.apache.camel.impl.DefaultProducer getProducer(TwitterEndpoint te, String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConsumer

public static Twitter4JConsumer getConsumer(TwitterEndpoint te,
                                            String uri)
                                     throws IllegalArgumentException
Throws:
IllegalArgumentException

getProducer

public static org.apache.camel.impl.DefaultProducer getProducer(TwitterEndpoint te,
                                                                String uri)
                                                         throws IllegalArgumentException
Throws:
IllegalArgumentException


Apache Camel