diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 10:01:06 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 10:01:06 +1300 |
commit | aac5af7aa0c2449459c88282dfcab5bee7785a6a (patch) | |
tree | a9c07ab339357a37e681ee5615e0f6377fc4c1dc /src/org/traccar/protocol/Gl100Protocol.java | |
parent | de9a600541738bd14608e740b495693f79bc97a1 (diff) | |
download | trackermap-server-aac5af7aa0c2449459c88282dfcab5bee7785a6a.tar.gz trackermap-server-aac5af7aa0c2449459c88282dfcab5bee7785a6a.tar.bz2 trackermap-server-aac5af7aa0c2449459c88282dfcab5bee7785a6a.zip |
Add support for GT300 message format
Diffstat (limited to 'src/org/traccar/protocol/Gl100Protocol.java')
-rw-r--r-- | src/org/traccar/protocol/Gl100Protocol.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gl100Protocol.java b/src/org/traccar/protocol/Gl100Protocol.java index 9867c653a..cc2c826ab 100644 --- a/src/org/traccar/protocol/Gl100Protocol.java +++ b/src/org/traccar/protocol/Gl100Protocol.java @@ -15,6 +15,7 @@ */ package org.traccar.protocol; +import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.string.StringDecoder; @@ -42,6 +43,14 @@ public class Gl100Protocol extends BaseProtocol { pipeline.addLast("objectDecoder", new Gl100ProtocolDecoder(Gl100Protocol.this)); } }); + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("stringDecoder", new StringDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); + pipeline.addLast("objectDecoder", new Gl100ProtocolDecoder(Gl100Protocol.this)); + } + }); } } |