diff options
author | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 13:05:07 -0800 |
---|---|---|
committer | Anton Tananaev <atananaev@lyft.com> | 2020-12-29 13:05:07 -0800 |
commit | f94951e7e78956b2bbd438665ff290a472afde76 (patch) | |
tree | 21ae964507b4e4e3a3c7f657e9057375c35701d1 /src/main/java/org/traccar/protocol/XexunProtocol.java | |
parent | 152d8fe43e4e7c15308ea39a19ac6c10da871ef7 (diff) | |
download | trackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.tar.gz trackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.tar.bz2 trackermap-server-f94951e7e78956b2bbd438665ff290a472afde76.zip |
Migrate more boolean keys
Diffstat (limited to 'src/main/java/org/traccar/protocol/XexunProtocol.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/XexunProtocol.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/XexunProtocol.java b/src/main/java/org/traccar/protocol/XexunProtocol.java index 401844e7b..b83c4e445 100644 --- a/src/main/java/org/traccar/protocol/XexunProtocol.java +++ b/src/main/java/org/traccar/protocol/XexunProtocol.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ import org.traccar.BaseProtocol; import org.traccar.Context; import org.traccar.PipelineBuilder; import org.traccar.TrackerServer; +import org.traccar.config.Keys; import org.traccar.model.Command; import io.netty.handler.codec.LineBasedFrameDecoder; @@ -34,7 +35,7 @@ public class XexunProtocol extends BaseProtocol { addServer(new TrackerServer(false, getName()) { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { - boolean full = Context.getConfig().getBoolean(getName() + ".extended"); + boolean full = Context.getConfig().getBoolean(Keys.PROTOCOL_EXTENDED.withPrefix(getName())); if (full) { pipeline.addLast(new LineBasedFrameDecoder(1024)); // tracker bug \n\r } else { |