diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-29 13:20:39 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-29 13:20:39 +1200 |
commit | b7327c3addc914c729ca2f9b50cd9a82e6d5d7d2 (patch) | |
tree | aa32e4c8b7cba58329d8cd077ef13c310f32f249 /src/org/traccar/protocol/Mta6Protocol.java | |
parent | 9d0819b538ab123bcf125f32d02920865090d14d (diff) | |
download | trackermap-server-b7327c3addc914c729ca2f9b50cd9a82e6d5d7d2.tar.gz trackermap-server-b7327c3addc914c729ca2f9b50cd9a82e6d5d7d2.tar.bz2 trackermap-server-b7327c3addc914c729ca2f9b50cd9a82e6d5d7d2.zip |
Combine MTA6 protocols
Diffstat (limited to 'src/org/traccar/protocol/Mta6Protocol.java')
-rw-r--r-- | src/org/traccar/protocol/Mta6Protocol.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Mta6Protocol.java b/src/org/traccar/protocol/Mta6Protocol.java index fb610227d..7281c4f1d 100644 --- a/src/org/traccar/protocol/Mta6Protocol.java +++ b/src/org/traccar/protocol/Mta6Protocol.java @@ -20,6 +20,7 @@ import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.http.HttpRequestDecoder; import org.jboss.netty.handler.codec.http.HttpResponseEncoder; import org.traccar.BaseProtocol; +import org.traccar.Context; import org.traccar.TrackerServer; import org.traccar.protocol.commands.CommandTemplate; import org.traccar.http.commands.CommandType; @@ -40,7 +41,8 @@ public class Mta6Protocol extends BaseProtocol { protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("httpDecoder", new HttpRequestDecoder()); pipeline.addLast("httpEncoder", new HttpResponseEncoder()); - pipeline.addLast("objectDecoder", new Mta6ProtocolDecoder(Mta6Protocol.this, false)); + pipeline.addLast("objectDecoder", new Mta6ProtocolDecoder( + Mta6Protocol.this, !Boolean.valueOf(Context.getProps().getProperty(getName() + ".can")))); } }); } |