public class StatusUpdatingMessageHandler extends AbstractMessageHandler implements IntegrationEvaluationContextAware
loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
StatusUpdatingMessageHandler(Twitter twitter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(Message<?> message) |
void |
setIntegrationEvaluationContext(EvaluationContext evaluationContext) |
void |
setTweetDataExpression(Expression tweetDataExpression)
|
getOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic StatusUpdatingMessageHandler(Twitter twitter)
public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
setIntegrationEvaluationContext in interface IntegrationEvaluationContextAwarepublic String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerpublic void setTweetDataExpression(Expression tweetDataExpression)
TweetData; must resolve to a
TweetData object, or a String, or a Tweet.
When using a TweetData directly in the expression, it is not necessary
to include the package:
"new TweetData("test").withMedia(headers.mediaResource).displayCoordinates(true)").
tweetDataExpression - The expression.protected void handleMessageInternal(Message<?> message) throws Exception
handleMessageInternal in class AbstractMessageHandlerException