public class TwitterSearchOutboundGateway extends AbstractReplyProducingMessageHandler implements IntegrationEvaluationContextAware
AbstractReplyProducingMessageHandler implementation to perform request/reply
Twitter search with SearchParameters as the result of searchArgsExpression
expression evaluation.AbstractReplyProducingMessageHandler.RequestHandlermessagingTemplateloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
TwitterSearchOutboundGateway(Twitter twitter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected Twitter |
getTwitter() |
protected java.lang.Object |
handleRequestMessage(Message<?> requestMessage)
Subclasses must implement this method to handle the request Message.
|
void |
setIntegrationEvaluationContext(EvaluationContext evaluationContext) |
void |
setSearchArgsExpression(Expression searchArgsExpression)
An expression that is used to build the search; must resolve to a
SearchParameters object, or a
String, in which case the default page size of 20 is applied,
or a list of up to 4 arguments, such as
"{payload, headers.pageSize, headers.sinceId, headers.maxId}". |
doInit, doInvokeAdvisedRequestHandler, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplygetOutputChannel, produceOutput, sendOutputs, setChannelResolver, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutputgetOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic TwitterSearchOutboundGateway(Twitter twitter)
public void setIntegrationEvaluationContext(EvaluationContext evaluationContext)
setIntegrationEvaluationContext in interface IntegrationEvaluationContextAwarepublic void setSearchArgsExpression(Expression searchArgsExpression)
SearchParameters object, or a
String, in which case the default page size of 20 is applied,
or a list of up to 4 arguments, such as
"{payload, headers.pageSize, headers.sinceId, headers.maxId}".
The first (required) argument must resolve to a String (query), the
optional arguments must resolve to an Number and represent the
page size, sinceId, and maxId respectively. Refer to the 'Spring
Social Twitter' documentation for more details.
When using a SearchParameters directly, it is not necessary
to include the package: "new SearchParameters("#foo").count(20)").
Default: "payload".
searchArgsExpression - The expression.public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerprotected Twitter getTwitter()
protected java.lang.Object handleRequestMessage(Message<?> requestMessage)
AbstractReplyProducingMessageHandlerhandleRequestMessage in class AbstractReplyProducingMessageHandlerrequestMessage - The request message.null.