aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/H02Protocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/H02Protocol.java')
-rw-r--r--src/org/traccar/protocol/H02Protocol.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/H02Protocol.java b/src/org/traccar/protocol/H02Protocol.java
index 29ac89f78..e4b9784c1 100644
--- a/src/org/traccar/protocol/H02Protocol.java
+++ b/src/org/traccar/protocol/H02Protocol.java
@@ -43,18 +43,18 @@ public class H02Protocol extends BaseProtocol {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
int messageLength = Context.getConfig().getInteger(getName() + ".messageLength");
- pipeline.addLast("frameDecoder", new H02FrameDecoder(messageLength));
- pipeline.addLast("stringEncoder", new StringEncoder());
- pipeline.addLast("objectEncoder", new H02ProtocolEncoder());
- pipeline.addLast("objectDecoder", new H02ProtocolDecoder(H02Protocol.this));
+ pipeline.addLast(new H02FrameDecoder(messageLength));
+ pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new H02ProtocolEncoder());
+ pipeline.addLast(new H02ProtocolDecoder(H02Protocol.this));
}
});
serverList.add(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast("stringEncoder", new StringEncoder());
- pipeline.addLast("objectEncoder", new H02ProtocolEncoder());
- pipeline.addLast("objectDecoder", new H02ProtocolDecoder(H02Protocol.this));
+ pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new H02ProtocolEncoder());
+ pipeline.addLast(new H02ProtocolDecoder(H02Protocol.this));
}
});
}