public class StatusUpdatingMessageHandler extends AbstractMessageHandler implements IntegrationEvaluationContextAware
logger
HIGHEST_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, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public StatusUpdatingMessageHandler(Twitter twitter)
public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
setIntegrationEvaluationContext
in interface IntegrationEvaluationContextAware
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageHandler
public 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 AbstractMessageHandler
Exception