diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:32:00 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:32:00 -0800 |
commit | bdb4aea7ddb7f525d5c476077a88d905d261fdb8 (patch) | |
tree | cfa8352aab61762644ece9f01b7997c05b4a19a4 /src/main/java/org/traccar/notification | |
parent | 8fe1e679935688676f7139bb9ed6dc61838d0e2f (diff) | |
download | trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.gz trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.bz2 trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.zip |
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/notification')
-rw-r--r-- | src/main/java/org/traccar/notification/EventForwarder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/notification/EventForwarder.java b/src/main/java/org/traccar/notification/EventForwarder.java index 966bff31d..c908fedbd 100644 --- a/src/main/java/org/traccar/notification/EventForwarder.java +++ b/src/main/java/org/traccar/notification/EventForwarder.java @@ -18,6 +18,7 @@ package org.traccar.notification; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.Context; +import org.traccar.config.Keys; import org.traccar.model.Device; import org.traccar.model.Event; import org.traccar.model.Geofence; @@ -39,8 +40,8 @@ public class EventForwarder { private final String header; public EventForwarder() { - url = Context.getConfig().getString("event.forward.url", "http://localhost/"); - header = Context.getConfig().getString("event.forward.header"); + url = Context.getConfig().getString(Keys.EVENT_FORWARD_URL); + header = Context.getConfig().getString(Keys.EVENT_FORWARD_HEADERS); } private static final String KEY_POSITION = "position"; |