diff options
author | Vitaly Litvak <vitavaque@gmail.com> | 2016-10-01 10:13:53 +0300 |
---|---|---|
committer | Vitaly Litvak <vitavaque@gmail.com> | 2016-10-01 10:13:53 +0300 |
commit | 510e8008788cb6b90634c6ba3120410d4c0964e5 (patch) | |
tree | 368c98faaffaeb5cf8d34dfa7ba4110fb12d4f58 /src/org/traccar/protocol | |
parent | 2c9c5540cb9c8edace64daba4b60957436d12e76 (diff) | |
download | traccar-server-510e8008788cb6b90634c6ba3120410d4c0964e5.tar.gz traccar-server-510e8008788cb6b90634c6ba3120410d4c0964e5.tar.bz2 traccar-server-510e8008788cb6b90634c6ba3120410d4c0964e5.zip |
Added 'StringEncoder' to fix conversion of strings to the netty's buffers
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Jt600Protocol.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Jt600Protocol.java b/src/org/traccar/protocol/Jt600Protocol.java index 78be088c1..c98d37956 100644 --- a/src/org/traccar/protocol/Jt600Protocol.java +++ b/src/org/traccar/protocol/Jt600Protocol.java @@ -17,6 +17,7 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; +import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.BaseProtocol; import org.traccar.TrackerServer; import org.traccar.model.Command; @@ -39,6 +40,7 @@ public class Jt600Protocol extends BaseProtocol { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("frameDecoder", new Jt600FrameDecoder()); + pipeline.addLast("stringEncoder", new StringEncoder()); pipeline.addLast("objectEncoder", new Jt600ProtocolEncoder()); pipeline.addLast("objectDecoder", new Jt600ProtocolDecoder(Jt600Protocol.this)); } |