This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 178cb74 Add support for Extended mode for full text (#2292) 178cb74 is described below commit 178cb7419386f11390ff8e9211a5b80c0cef92dd Author: Akhilesh Singh <meetdest...@gmail.com> AuthorDate: Thu Apr 19 17:19:13 2018 +1000 Add support for Extended mode for full text (#2292) --- .../camel/component/twitter/TwitterConfiguration.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java index 9f46012..a93fecc 100644 --- a/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java +++ b/components/camel-twitter/src/main/java/org/apache/camel/component/twitter/TwitterConfiguration.java @@ -72,6 +72,8 @@ public class TwitterConfiguration { private Double radius; @UriParam(label = "consumer,advanced", defaultValue = "km", enums = "km,mi") private String distanceMetric; + @UriParam(label = "consumer,advanced") + private Boolean extendedMode; /** * Singleton, on demand instances of Twitter4J's Twitter & TwitterStream. @@ -107,6 +109,7 @@ public class TwitterConfiguration { confBuilder.setOAuthConsumerSecret(consumerSecret); confBuilder.setOAuthAccessToken(accessToken); confBuilder.setOAuthAccessTokenSecret(accessTokenSecret); + confBuilder.setTweetModeExtended(getExtendedMode()); if (getHttpProxyHost() != null) { confBuilder.setHttpProxyHost(getHttpProxyHost()); } @@ -393,5 +396,19 @@ public class TwitterConfiguration { public void setDistanceMetric(String distanceMetric) { this.distanceMetric = distanceMetric; } + + /** + * Used for enabling full text from twitter. + * <p/> + */ + public void setExtendedMode(Boolean extendedMode) { + this.radius = radius; + } + + public Boolean getExtendedMode() { + return extendedMode; + } + + } -- To stop receiving notification emails like this one, please contact davscl...@apache.org.