public class StatusUpdatingMessageHandler extends AbstractMessageHandler
IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
StatusUpdatingMessageHandler(org.springframework.social.twitter.api.Twitter twitter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext) |
void |
setTweetDataExpression(org.springframework.expression.Expression tweetDataExpression)
An expression that is used to build the
TweetData; must resolve to a
TweetData object, or a String, or a Tweet. |
configureMetrics, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic StatusUpdatingMessageHandler(org.springframework.social.twitter.api.Twitter twitter)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerpublic void setTweetDataExpression(org.springframework.expression.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.public void setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext)
protected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class AbstractMessageHandlerjava.lang.Exception - Any exception.protected void handleMessageInternal(org.springframework.messaging.Message<?> message)
throws java.lang.Exception
handleMessageInternal in class AbstractMessageHandlerjava.lang.Exception