Spring Integration

org.springframework.integration.twitter
Class InboundDMStatusEndpoint

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
              extended by org.springframework.integration.twitter.InboundDMStatusEndpoint
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent

public class InboundDMStatusEndpoint
extends AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>

This class handles support for receiving DMs (direct messages) using Twitter.

Author:
Josh Long

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport
AbstractInboundTwitterEndpointSupport.ApiCallback<C>
 
Field Summary
 
Fields inherited from class org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport
configuration, markerId, messagingTemplate, twitter
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
InboundDMStatusEndpoint()
           
 
Method Summary
protected  void markLastStatusId(twitter4j.DirectMessage dm)
           
protected  void refresh()
           
protected  List<twitter4j.DirectMessage> sort(List<twitter4j.DirectMessage> rl)
           
 
Methods inherited from class org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport
doStart, doStop, forward, forwardAll, getMarkerId, handleReceivingRateLimitStatus, hasMarkedStatus, onInit, runAsAPIRateLimitsPermit, setConfiguration, setRequestChannel, waitUntilPullAvailable
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
 

Constructor Detail

InboundDMStatusEndpoint

public InboundDMStatusEndpoint()
Method Detail

markLastStatusId

protected void markLastStatusId(twitter4j.DirectMessage dm)
Specified by:
markLastStatusId in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>

sort

protected List<twitter4j.DirectMessage> sort(List<twitter4j.DirectMessage> rl)
Specified by:
sort in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>

refresh

protected void refresh()
                throws Exception
Specified by:
refresh in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
Throws:
Exception

Spring Integration

Copyright © 2010. All Rights Reserved.