aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authornativbarak <nativ@globekeeper.com>2018-04-12 19:11:55 +0300
committernativbarak <nativ@globekeeper.com>2018-04-12 19:11:55 +0300
commit8ca988c3381b10eeb0939b05ba1cc3e49c7cc8ed (patch)
treeda534ffeca41ca558fb8664b7403eccd5f33ae44 /src/org
parent617393cf9f052298f7fb35f0c58138c87a6dd5c3 (diff)
downloadtraccar-server-8ca988c3381b10eeb0939b05ba1cc3e49c7cc8ed.tar.gz
traccar-server-8ca988c3381b10eeb0939b05ba1cc3e49c7cc8ed.tar.bz2
traccar-server-8ca988c3381b10eeb0939b05ba1cc3e49c7cc8ed.zip
Fixed wrong order of input, unused import and changed name of protocol
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/AustinNBProtocol.java (renamed from src/org/traccar/protocol/GlobeKeeperProtocol.java)8
-rw-r--r--src/org/traccar/protocol/AustinNBProtocolDecoder.java (renamed from src/org/traccar/protocol/GlobeKeeperProtocolDecoder.java)6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/GlobeKeeperProtocol.java b/src/org/traccar/protocol/AustinNBProtocol.java
index 9231c067c..c250e9b3d 100644
--- a/src/org/traccar/protocol/GlobeKeeperProtocol.java
+++ b/src/org/traccar/protocol/AustinNBProtocol.java
@@ -24,10 +24,10 @@ import org.traccar.TrackerServer;
import java.util.List;
-public class GlobeKeeperProtocol extends BaseProtocol {
+public class AustinNBProtocol extends BaseProtocol {
- public GlobeKeeperProtocol() {
- super("globekeeper");
+ public AustinNBProtocol() {
+ super("austinnb");
}
@Override
@@ -37,7 +37,7 @@ public class GlobeKeeperProtocol extends BaseProtocol {
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("stringDecoder", new StringDecoder());
- pipeline.addLast("objectDecoder", new GlobeKeeperProtocolDecoder(GlobeKeeperProtocol.this));
+ pipeline.addLast("objectDecoder", new AustinNBProtocolDecoder(AustinNBProtocol.this));
}
});
}
diff --git a/src/org/traccar/protocol/GlobeKeeperProtocolDecoder.java b/src/org/traccar/protocol/AustinNBProtocolDecoder.java
index c4daf4409..4c37ac9a2 100644
--- a/src/org/traccar/protocol/GlobeKeeperProtocolDecoder.java
+++ b/src/org/traccar/protocol/AustinNBProtocolDecoder.java
@@ -25,9 +25,9 @@ import org.traccar.model.Position;
import java.net.SocketAddress;
import java.util.regex.Pattern;
-public class GlobeKeeperProtocolDecoder extends BaseProtocolDecoder {
+public class AustinNBProtocolDecoder extends BaseProtocolDecoder {
- public GlobeKeeperProtocolDecoder(GlobeKeeperProtocol protocol) {
+ public AustinNBProtocolDecoder(AustinNBProtocol protocol) {
super(protocol);
}
@@ -60,8 +60,8 @@ public class GlobeKeeperProtocolDecoder extends BaseProtocolDecoder {
position.setTime(parser.nextDateTime());
position.setValid(true);
- position.setLongitude(Double.parseDouble(parser.next().replace(',', '.')));
position.setLatitude(Double.parseDouble(parser.next().replace(',', '.')));
+ position.setLongitude(Double.parseDouble(parser.next().replace(',', '.')));
return position;
}