aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/CastelProtocol.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/CastelProtocol.java')
-rw-r--r--src/org/traccar/protocol/CastelProtocol.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/CastelProtocol.java b/src/org/traccar/protocol/CastelProtocol.java
index fcf461fde..e82682dea 100644
--- a/src/org/traccar/protocol/CastelProtocol.java
+++ b/src/org/traccar/protocol/CastelProtocol.java
@@ -38,17 +38,16 @@ public class CastelProtocol extends BaseProtocol {
serverList.add(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast("frameDecoder",
- new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 2, 2, -4, 0, true));
- pipeline.addLast("objectEncoder", new CastelProtocolEncoder());
- pipeline.addLast("objectDecoder", new CastelProtocolDecoder(CastelProtocol.this));
+ pipeline.addLast(new LengthFieldBasedFrameDecoder(ByteOrder.LITTLE_ENDIAN, 1024, 2, 2, -4, 0, true));
+ pipeline.addLast(new CastelProtocolEncoder());
+ pipeline.addLast(new CastelProtocolDecoder(CastelProtocol.this));
}
});
serverList.add(new TrackerServer(true, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast("objectEncoder", new CastelProtocolEncoder());
- pipeline.addLast("objectDecoder", new CastelProtocolDecoder(CastelProtocol.this));
+ pipeline.addLast(new CastelProtocolEncoder());
+ pipeline.addLast(new CastelProtocolDecoder(CastelProtocol.this));
}
});
}