aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AdmProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/AdmProtocol.java')
-rw-r--r--src/org/traccar/protocol/AdmProtocol.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/AdmProtocol.java b/src/org/traccar/protocol/AdmProtocol.java
index 994661af2..3e240ac08 100644
--- a/src/org/traccar/protocol/AdmProtocol.java
+++ b/src/org/traccar/protocol/AdmProtocol.java
@@ -39,11 +39,10 @@ public class AdmProtocol extends BaseProtocol {
serverList.add(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast("frameDecoder",
- new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 2, 1, -3, 0, true));
- pipeline.addLast("stringEncoder", new StringEncoder());
- pipeline.addLast("objectEncoder", new AdmProtocolEncoder());
- pipeline.addLast("objectDecoder", new AdmProtocolDecoder(AdmProtocol.this));
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 2, 1, -3, 0, true));
+ pipeline.addLast(new StringEncoder());
+ pipeline.addLast(new AdmProtocolEncoder());
+ pipeline.addLast(new AdmProtocolDecoder(AdmProtocol.this));
}
});
}