diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 17:54:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 17:54:00 +1200 |
commit | a2dac324574dde8fe8e57bd46dd7f94d0fb60231 (patch) | |
tree | 061e957cb53e00214a33acb6317be9c0849c50fa /src/org/traccar/protocol/XexunProtocol.java | |
parent | f1ae2d73584d4ddded6f727c665d97f03ecf9c25 (diff) | |
download | trackermap-server-a2dac324574dde8fe8e57bd46dd7f94d0fb60231.tar.gz trackermap-server-a2dac324574dde8fe8e57bd46dd7f94d0fb60231.tar.bz2 trackermap-server-a2dac324574dde8fe8e57bd46dd7f94d0fb60231.zip |
Re-factor configuration access
Diffstat (limited to 'src/org/traccar/protocol/XexunProtocol.java')
-rw-r--r-- | src/org/traccar/protocol/XexunProtocol.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/XexunProtocol.java b/src/org/traccar/protocol/XexunProtocol.java index 52d022b05..ea3ed8c10 100644 --- a/src/org/traccar/protocol/XexunProtocol.java +++ b/src/org/traccar/protocol/XexunProtocol.java @@ -15,6 +15,7 @@ */ package org.traccar.protocol; +import java.util.List; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.frame.LineBasedFrameDecoder; @@ -23,8 +24,6 @@ import org.traccar.BaseProtocol; import org.traccar.Context; import org.traccar.TrackerServer; -import java.util.List; - public class XexunProtocol extends BaseProtocol { public XexunProtocol() { @@ -36,7 +35,7 @@ public class XexunProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ServerBootstrap(), this.getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - boolean full = Boolean.valueOf(Context.getProps().getProperty(getName() + ".extended")); + boolean full = Context.getConfig().getBoolean(getName() + ".extended"); if (full) { pipeline.addLast("frameDecoder", new LineBasedFrameDecoder(1024)); // tracker bug \n\r } else { |