aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/WebDataHandler.java
diff options
context:
space:
mode:
authorVitaliy Gergel <vitaliy.gergel@zoomdata.com>2020-03-05 22:22:59 +0200
committerVitaliy Gergel <vitaliy.gergel@zoomdata.com>2020-03-05 22:22:59 +0200
commit3c82764799784d3d30d969dbfef9a075f4874278 (patch)
tree34f1acf1124575dcf891bff53cf23cc1df35d271 /src/main/java/org/traccar/WebDataHandler.java
parent0270f5b639166b385ac779c0d2caa41d7c408771 (diff)
downloadtrackermap-server-3c82764799784d3d30d969dbfef9a075f4874278.tar.gz
trackermap-server-3c82764799784d3d30d969dbfef9a075f4874278.tar.bz2
trackermap-server-3c82764799784d3d30d969dbfef9a075f4874278.zip
Rename forward.urlVariables property
Diffstat (limited to 'src/main/java/org/traccar/WebDataHandler.java')
-rw-r--r--src/main/java/org/traccar/WebDataHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/WebDataHandler.java b/src/main/java/org/traccar/WebDataHandler.java
index 1af1af48a..d6bfb126b 100644
--- a/src/main/java/org/traccar/WebDataHandler.java
+++ b/src/main/java/org/traccar/WebDataHandler.java
@@ -67,7 +67,7 @@ public class WebDataHandler extends BaseDataHandler {
private final String url;
private final String header;
private final boolean json;
- private final boolean jsonUrlVariables;
+ private final boolean urlVariables;
private final boolean retryEnabled;
private final int retryDelay;
@@ -86,7 +86,7 @@ public class WebDataHandler extends BaseDataHandler {
this.url = config.getString(Keys.FORWARD_URL);
this.header = config.getString(Keys.FORWARD_HEADER);
this.json = config.getBoolean(Keys.FORWARD_JSON);
- this.jsonUrlVariables = config.getBoolean(Keys.FORWARD_JSON_URL_VARIABLES);
+ this.urlVariables = config.getBoolean(Keys.FORWARD_URL_VARIABLES);
this.retryEnabled = config.getBoolean(Keys.FORWARD_RETRY_ENABLE);
this.retryDelay = config.getInteger(Keys.FORWARD_RETRY_DELAY, 100);
@@ -194,7 +194,7 @@ public class WebDataHandler extends BaseDataHandler {
String formattedUrl;
try {
- formattedUrl = (json && !jsonUrlVariables) ? url : formatRequest(position);
+ formattedUrl = (json && !urlVariables) ? url : formatRequest(position);
} catch (UnsupportedEncodingException | JsonProcessingException e) {
throw new RuntimeException("Forwarding formatting error", e);
}