org.springframework.integration.twitter.outbound
Class AbstractOutboundTwitterEndpointSupport

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.twitter.outbound.AbstractOutboundTwitterEndpointSupport
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, Orderable, MessageHandler, TrackableComponent
Direct Known Subclasses:
DirectMessageSendingMessageHandler, TimelineUpdateSendingMessageHandler

public abstract class AbstractOutboundTwitterEndpointSupport
extends AbstractMessageHandler

Base adapter class for all outbound Twitter adapters

Since:
2.0

Field Summary
protected  OAuthConfiguration configuration
           
protected  OutboundStatusUpdateMessageMapper supportStatusUpdate
           
protected  twitter4j.Twitter twitter
           
 
Fields inherited from class org.springframework.integration.handler.AbstractMessageHandler
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AbstractOutboundTwitterEndpointSupport()
           
 
Method Summary
protected  void onInit()
          Subclasses may implement this for initialization logic.
 void setConfiguration(OAuthConfiguration configuration)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getComponentType, getOrder, handleMessage, handleMessageInternal, setOrder, setShouldTrack
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Field Detail

configuration

protected volatile OAuthConfiguration configuration

twitter

protected volatile twitter4j.Twitter twitter

supportStatusUpdate

protected final OutboundStatusUpdateMessageMapper supportStatusUpdate
Constructor Detail

AbstractOutboundTwitterEndpointSupport

public AbstractOutboundTwitterEndpointSupport()
Method Detail

setConfiguration

public void setConfiguration(OAuthConfiguration configuration)

onInit

protected void onInit()
               throws java.lang.Exception
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class IntegrationObjectSupport
Throws:
java.lang.Exception