aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/ServerManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-29 11:59:59 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-29 11:59:59 +1200
commit3af6a0d0bfe3be35a3bd4a6360edf93d6c25dad2 (patch)
treee0ca06a7dc00a91b8cfe24103823b763a1a222dd /src/org/traccar/ServerManager.java
parent33773135d333605059f0cb78282edd3a9438440e (diff)
downloadtrackermap-server-3af6a0d0bfe3be35a3bd4a6360edf93d6c25dad2.tar.gz
trackermap-server-3af6a0d0bfe3be35a3bd4a6360edf93d6c25dad2.tar.bz2
trackermap-server-3af6a0d0bfe3be35a3bd4a6360edf93d6c25dad2.zip
Some cleanup and license note
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r--src/org/traccar/ServerManager.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java
index bf6e87e17..1e4714c65 100644
--- a/src/org/traccar/ServerManager.java
+++ b/src/org/traccar/ServerManager.java
@@ -15,21 +15,12 @@
*/
package org.traccar;
-import java.nio.ByteOrder;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import org.jboss.netty.bootstrap.ConnectionlessBootstrap;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
-import org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder;
-import org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder;
-import org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder;
-import org.jboss.netty.handler.codec.http.HttpChunkAggregator;
-import org.jboss.netty.handler.codec.http.HttpRequestDecoder;
-import org.jboss.netty.handler.codec.http.HttpResponseEncoder;
-import org.jboss.netty.handler.codec.string.StringDecoder;
-import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.protocol.*;
public class ServerManager {
@@ -66,7 +57,6 @@ public class ServerManager {
initProtocolServer(new GpsGateProtocol());
initProtocolServer(new TeltonikaProtocol());
initProtocolServer(new Mta6Protocol());
- initProtocolServer(new Mta6canProtocol());
initProtocolServer(new Tlt2hProtocol());
initProtocolServer(new SyrusProtocol());
initProtocolServer(new WondexProtocol());
@@ -169,7 +159,7 @@ public class ServerManager {
private void initProtocolServer(final Protocol protocol) throws SQLException {
if (isProtocolEnabled(protocol.getName())) {
- protocol.addTrackerServersTo(serverList);
+ protocol.initTrackerServers(serverList);
}
}