aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/SviasProtocol.java
diff options
context:
space:
mode:
authormichaelloliveira <michaelloliveira@gmail.com>2018-06-04 11:29:20 -0300
committerGitHub <noreply@github.com>2018-06-04 11:29:20 -0300
commit504277e7a77bdf27b1bed31f585ef01dace1a3a5 (patch)
treeff10f92eeae235a6d2f904295ce95d9b6a7a77ad /src/org/traccar/protocol/SviasProtocol.java
parent733e620bea7d6e14d43c8472a32d7db9594494e5 (diff)
downloadtrackermap-server-504277e7a77bdf27b1bed31f585ef01dace1a3a5.tar.gz
trackermap-server-504277e7a77bdf27b1bed31f585ef01dace1a3a5.tar.bz2
trackermap-server-504277e7a77bdf27b1bed31f585ef01dace1a3a5.zip
Modified structure for using Patterns.
Diffstat (limited to 'src/org/traccar/protocol/SviasProtocol.java')
-rw-r--r--src/org/traccar/protocol/SviasProtocol.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/org/traccar/protocol/SviasProtocol.java b/src/org/traccar/protocol/SviasProtocol.java
index b58872baf..8a45f43cb 100644
--- a/src/org/traccar/protocol/SviasProtocol.java
+++ b/src/org/traccar/protocol/SviasProtocol.java
@@ -21,10 +21,9 @@ import org.jboss.netty.handler.codec.string.StringDecoder;
import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.TrackerServer;
-import org.traccar.model.Command;
import java.util.List;
-import org.jboss.netty.bootstrap.ConnectionlessBootstrap;
+import org.traccar.model.Command;
public class SviasProtocol extends BaseProtocol {
@@ -41,7 +40,7 @@ public class SviasProtocol extends BaseProtocol {
Command.TYPE_ALARM_REMOVE);
}
- @Override
+ @Override
public void initTrackerServers(List<TrackerServer> serverList) {
serverList.add(new TrackerServer(new ServerBootstrap(), getName()) {
@Override
@@ -52,15 +51,6 @@ public class SviasProtocol extends BaseProtocol {
pipeline.addLast("objectDecoder", new SviasProtocolDecoder(SviasProtocol.this));
}
});
- serverList.add(new TrackerServer(new ConnectionlessBootstrap(), getName()) {
- @Override
- protected void addSpecificHandlers(ChannelPipeline pipeline) {
- pipeline.addLast("stringEncoder", new StringEncoder());
- pipeline.addLast("stringDecoder", new StringDecoder());
- pipeline.addLast("objectEncoder", new SviasProtocolEncoder());
- pipeline.addLast("objectDecoder", new SviasProtocolDecoder(SviasProtocol.this));
- }
- });
}
}