org.springframework.integration.twitter
Class OutboundUpdatedStatusMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.twitter.AbstractOutboundTwitterEndpointSupport
org.springframework.integration.twitter.OutboundUpdatedStatusMessageHandler
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, MessageHandler
public class OutboundUpdatedStatusMessageHandler
- extends AbstractOutboundTwitterEndpointSupport
This class is useful for both sending regular status updates as well as 'replies' or 'mentions'
- Since:
- 2.0
- Author:
- Josh Long
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
OutboundUpdatedStatusMessageHandler
public OutboundUpdatedStatusMessageHandler()
handleMessage
public void handleMessage(Message<?> message)
throws MessageRejectedException,
MessageHandlingException,
MessageDeliveryException
- Description copied from interface:
MessageHandler
- Handles the message if possible. If the handler cannot deal with the
message this will result in a
MessageRejectedException
e.g.
in case of a Selective Consumer. When a consumer tries to handle a
message, but fails to do so, a MessageHandlingException
is
thrown. In the last case it is recommended to treat the message as tainted
and go into an error scenario.
When the handling results in a failure of another message being sent
(e.g. a "reply" message), that failure will trigger a
MessageDeliveryException
.
- Parameters:
message
- the message to be handled
- Throws:
MessageRejectedException
- if the handler doesn't accept the message
MessageHandlingException
- when something fails during the handling
MessageDeliveryException
- when this handler failed to deliver the
reply related to the handling of the message
Copyright © 2010. All Rights Reserved.