aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/WialonProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/WialonProtocol.java')
-rw-r--r--src/org/traccar/protocol/WialonProtocol.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/WialonProtocol.java b/src/org/traccar/protocol/WialonProtocol.java
index 119d9899b..c606251c0 100644
--- a/src/org/traccar/protocol/WialonProtocol.java
+++ b/src/org/traccar/protocol/WialonProtocol.java
@@ -44,16 +44,16 @@ public class WialonProtocol extends BaseProtocol {
serverList.add(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(4 * 1024));
- pipeline.addLast("stringEncoder", new StringEncoder());
+ pipeline.addLast(new LineBasedFrameDecoder(4 * 1024));
+ pipeline.addLast(new StringEncoder());
boolean utf8 = Context.getConfig().getBoolean(getName() + ".utf8");
if (utf8) {
- pipeline.addLast("stringDecoder", new StringDecoder(StandardCharsets.UTF_8));
+ pipeline.addLast(new StringDecoder(StandardCharsets.UTF_8));
} else {
- pipeline.addLast("stringDecoder", new StringDecoder());
+ pipeline.addLast(new StringDecoder());
}
- pipeline.addLast("objectEncoder", new WialonProtocolEncoder());
- pipeline.addLast("objectDecoder", new WialonProtocolDecoder(WialonProtocol.this));
+ pipeline.addLast(new WialonProtocolEncoder());
+ pipeline.addLast(new WialonProtocolDecoder(WialonProtocol.this));
}
});
}