camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Telford (JIRA)" <>
Subject [jira] [Created] (CAMEL-6107) Language option not working for twitter streaming event filter
Date Wed, 27 Feb 2013 15:59:12 GMT
Kevin Telford created CAMEL-6107:

             Summary: Language option not working for twitter streaming event filter
                 Key: CAMEL-6107
             Project: Camel
          Issue Type: Bug
          Components: camel-twitter
    Affects Versions: 2.11.0
            Reporter: Kevin Telford
            Priority: Minor

The filter seemed to be working when the streaming filter type was userids, but that could
have just been happenstance.  Either way, when running a streaming event filter with a language
option set I observe tweets coming in that are from users who have their language preferences
set to other than the specified language.  I'm only assume here this is what they are/should
be matching against so this could be moot.

Example route code:
    public void configure() throws Exception {
        String keywords = "lol";
                + "&consumerKey=%s&consumerSecret=%s&accessToken=%s&accessTokenSecret=%s",

                    keywords, consumerKey, consumerSecret, accessToken, accessTokenSecret)
                .process(new Processor() {
                    public void process(Exchange exchange) throws Exception {
                        String json = exchange.getIn().getBody().toString();
                        if (json.contains("lang='en'")) {
                        } else {

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message