aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/WebDataHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-23 11:04:08 -0800
commit1e2c06694e787201209b1d8953cf498a72c335d8 (patch)
tree53bc5d36faba98f2a2a6257f8791e0dbb6d314a8 /src/org/traccar/WebDataHandler.java
parentd338b1177bcc46bb1b1bad1d8a76d6008dfe2239 (diff)
downloadtrackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.gz
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.tar.bz2
trackermap-server-1e2c06694e787201209b1d8953cf498a72c335d8.zip
Refactor configuration
Diffstat (limited to 'src/org/traccar/WebDataHandler.java')
-rw-r--r--src/org/traccar/WebDataHandler.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index e29e5a075..27b317321 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -17,6 +17,8 @@ package org.traccar;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
+import org.traccar.config.Config;
+import org.traccar.config.Keys;
import org.traccar.database.IdentityManager;
import org.traccar.helper.Checksum;
import org.traccar.model.Device;
@@ -56,9 +58,9 @@ public class WebDataHandler extends BaseDataHandler {
this.identityManager = identityManager;
this.objectMapper = objectMapper;
this.client = client;
- this.url = config.getString("forward.url");
- this.header = config.getString("forward.header");
- this.json = config.getBoolean("forward.json");
+ this.url = config.getString(Keys.FORWARD_URL);
+ this.header = config.getString(Keys.FORWARD_HEADER);
+ this.json = config.getBoolean(Keys.FORWARD_JSON);
}
private static String formatSentence(Position position) {