aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-04 14:53:05 +0530
committerSubodh Ranadive <subodh.ranadive@ekzero.com>2021-03-24 15:30:31 +0530
commit9cc97bf816e166f8d5c43d4aadee24105a9e317d (patch)
tree3ed17f90cd582c7cc5e9f7e95f4fc20a4b6cecea /src/main/java/org/traccar/Context.java
parentbe87b57c22b385bfc317d4e3e18e43877f46ca9b (diff)
downloadtrackermap-server-9cc97bf816e166f8d5c43d4aadee24105a9e317d.tar.gz
trackermap-server-9cc97bf816e166f8d5c43d4aadee24105a9e317d.tar.bz2
trackermap-server-9cc97bf816e166f8d5c43d4aadee24105a9e317d.zip
feature : added support of AWS SNS messaging
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 3ba8843f0..0dce70b93 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -60,6 +60,7 @@ import org.traccar.reports.model.TripsConfig;
import org.traccar.schedule.ScheduleManager;
import org.traccar.sms.HttpSmsClient;
import org.traccar.sms.SmsManager;
+import org.traccar.sms.SnsSmsClient;
import org.traccar.web.WebServer;
import javax.ws.rs.client.Client;
@@ -319,6 +320,10 @@ public final class Context {
smsManager = new HttpSmsClient();
}
+ if (config.hasKey(Keys.AWS_SNS_ENABLED)) {
+ smsManager = new SnsSmsClient();
+ }
+
initEventsModule();
serverManager = new ServerManager();