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
commit fd590b0312b57db4d017545f3760530caa417a68 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Jun 5 05:39:37 2019 +0200 Fixed CS --- .../component/telegram/TelegramConfiguration.java | 20 ++++++++++---------- .../service/TelegramServiceRestBotAPIAdapter.java | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/TelegramConfiguration.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/TelegramConfiguration.java index 52f94dd..acfa728 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/TelegramConfiguration.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/TelegramConfiguration.java @@ -33,14 +33,14 @@ public class TelegramConfiguration { @Metadata(required = true) private String type; - @UriPath(label = "security", description = "The authorization token for using the bot (ask the BotFather), eg. 654321531:HGF_dTra456323dHuOedsE343211fqr3t-H.") + @UriPath(description = "The authorization token for using the bot (ask the BotFather)", label = "security") @Metadata(required = true) private String authorizationToken; - @UriParam(description = "The proxyHost which could be used when sending out the message.") + @UriParam(description = "HTTP proxy host which could be used when sending out the message.", label = "proxy") private String proxyHost; - @UriParam(description = "The proxyPort which could be used when sending out the message.") + @UriParam(description = "HTTP proxy port which could be used when sending out the message.", label = "proxy") private Integer proxyPort; @UriParam(description = "The identifier of the chat that will receive the produced messages. Chat ids can be first obtained from incoming messages " @@ -52,7 +52,8 @@ public class TelegramConfiguration { "consumer.", defaultValue = "30", label = "consumer") private Integer timeout = 30; - @UriParam(description = "Limit on the number of updates that can be received in a single polling request.", optionalPrefix = "consumer.", defaultValue = "100", label = "consumer") + @UriParam(description = "Limit on the number of updates that can be received in a single polling request.", + optionalPrefix = "consumer.", defaultValue = "100", label = "consumer") private Integer limit = 100; public TelegramConfiguration() { @@ -105,23 +106,22 @@ public class TelegramConfiguration { } public String getProxyHost() { - return proxyHost; + return proxyHost; } public void setProxyHost(String proxyHost) { - this.proxyHost = proxyHost; + this.proxyHost = proxyHost; } public Integer getProxyPort() { - return proxyPort; + return proxyPort; } public void setProxyPort(Integer proxyPort) { - this.proxyPort = proxyPort; + this.proxyPort = proxyPort; } - - public String getChatId() { + public String getChatId() { return chatId; } diff --git a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramServiceRestBotAPIAdapter.java b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramServiceRestBotAPIAdapter.java index 87d2bf8..483bbb3 100644 --- a/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramServiceRestBotAPIAdapter.java +++ b/components/camel-telegram/src/main/java/org/apache/camel/component/telegram/service/TelegramServiceRestBotAPIAdapter.java @@ -60,6 +60,10 @@ public class TelegramServiceRestBotAPIAdapter implements TelegramService { httpConduit.getClient().setAllowChunking(false); } + public TelegramServiceRestBotAPIAdapter(RestBotAPI api) { + this.api = api; + } + @Override public void setHttpProxy(String host, Integer port) { HTTPConduit httpConduit = WebClient.getConfig(this.api).getHttpConduit(); @@ -67,10 +71,6 @@ public class TelegramServiceRestBotAPIAdapter implements TelegramService { httpConduit.getClient().setProxyServerPort(port); } - public TelegramServiceRestBotAPIAdapter(RestBotAPI api) { - this.api = api; - } - @Override public UpdateResult getUpdates(String authorizationToken, Long offset, Integer limit, Integer timeoutSeconds) { return api.getUpdates(authorizationToken, offset, limit, timeoutSeconds);