aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-04 15:22:42 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:31 +0530
commitd874d35a097f0a9a4547f8722a76a5dcda40c7e3 (patch)
tree36db273a04c3d534e27af8d025a694b5ca557314 /src
parente290a9f460b5e364aa7cf020aaadc874c5fc282a (diff)
downloadtrackermap-server-d874d35a097f0a9a4547f8722a76a5dcda40c7e3.tar.gz
trackermap-server-d874d35a097f0a9a4547f8722a76a5dcda40c7e3.tar.bz2
trackermap-server-d874d35a097f0a9a4547f8722a76a5dcda40c7e3.zip
linting fixed
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index dcfe5b536..0e77cea01 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -20,21 +20,21 @@ import java.util.Map;
public class SnsSmsClient implements SmsManager {
private static final Logger LOGGER = LoggerFactory.getLogger(SnsSmsClient.class);
- private final String access_key;
- private final String secret_key;
+ private final String accessKey;
+ private final String secretKey;
private final String region;
- private final String sns_status;
+ private final String snsStatus;
private final AmazonSNS snsClient;
public SnsSmsClient() {
- access_key = Context.getConfig().getString(Keys.AWS_ACCESS_KEY);
- secret_key = Context.getConfig().getString(Keys.AWS_SECRET_KEY);
- sns_status = Context.getConfig().getString(Keys.AWS_SNS_ENABLED);
+ accessKey = Context.getConfig().getString(Keys.AWS_ACCESS_KEY);
+ secretKey = Context.getConfig().getString(Keys.AWS_SECRET_KEY);
+ snsStatus = Context.getConfig().getString(Keys.AWS_SNS_ENABLED);
region = Context.getConfig().getString(Keys.AWS_REGION);
- snsClient = awsSNSClient(access_key, secret_key, region);
+ snsClient = awsSNSClient(accessKey, secretKey, region);
- if (!sns_status.equals("true") || access_key == null || secret_key == null || region == null) {
+ if (!snsStatus.equals("true") || accessKey == null || secretKey == null || region == null) {
LOGGER.error("SNS Not Configured Properly. Please provide valid config.");
}
}
@@ -48,7 +48,7 @@ public class SnsSmsClient implements SmsManager {
public void sendSNSMessage(String message, String destAddress) {
Map<String, MessageAttributeValue> smsAttributes = new HashMap<>();
smsAttributes.put("AWS.SNS.SMS.SenderID",
- new MessageAttributeValue().withStringValue("VegitOne").withDataType("String"));
+ new MessageAttributeValue().withStringValue("SNS").withDataType("String"));
smsAttributes.put("AWS.SNS.SMS.SMSType",
new MessageAttributeValue().withStringValue("Transactional").withDataType("String"));