diff options
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocol.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/NavisProtocol.java b/src/org/traccar/protocol/NavisProtocol.java index 687c5b334..83a9dc99d 100644 --- a/src/org/traccar/protocol/NavisProtocol.java +++ b/src/org/traccar/protocol/NavisProtocol.java @@ -21,16 +21,10 @@ import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; import java.nio.ByteOrder; -import java.util.List; - public class NavisProtocol extends BaseProtocol { public NavisProtocol() { - } - - @Override - public void initTrackerServers(List<TrackerServer> serverList) { - serverList.add(new TrackerServer(false, getName()) { + addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 4096, 12, 2, 2, 0, true)); |