diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-30 14:48:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-30 14:48:42 -0700 |
commit | 0202dbf7258df8cbe8168ddc985e774b1cadf964 (patch) | |
tree | 4828e614e29715e6bdfd10c5db86b52e43229ab3 /src/main/java/org/traccar/TrackerClient.java | |
parent | 014cf82a9e63a36e944e293932f9edf27e452919 (diff) | |
download | trackermap-server-0202dbf7258df8cbe8168ddc985e774b1cadf964.tar.gz trackermap-server-0202dbf7258df8cbe8168ddc985e774b1cadf964.tar.bz2 trackermap-server-0202dbf7258df8cbe8168ddc985e774b1cadf964.zip |
Decouple more tests from context
Diffstat (limited to 'src/main/java/org/traccar/TrackerClient.java')
-rw-r--r-- | src/main/java/org/traccar/TrackerClient.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/TrackerClient.java b/src/main/java/org/traccar/TrackerClient.java index dda02f909..12971849c 100644 --- a/src/main/java/org/traccar/TrackerClient.java +++ b/src/main/java/org/traccar/TrackerClient.java @@ -23,6 +23,7 @@ import io.netty.handler.ssl.SslHandler; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GenericFutureListener; import io.netty.util.concurrent.GlobalEventExecutor; +import org.traccar.config.Config; import org.traccar.config.Keys; import javax.net.ssl.SSLContext; @@ -77,7 +78,7 @@ public abstract class TrackerClient implements TrackerConnector { @Override protected void addProtocolHandlers(PipelineBuilder pipeline) { try { - TrackerClient.this.addProtocolHandlers(pipeline); + TrackerClient.this.addProtocolHandlers(pipeline, Context.getConfig()); } catch (Exception e) { throw new RuntimeException(e); } @@ -90,7 +91,7 @@ public abstract class TrackerClient implements TrackerConnector { .handler(pipelineFactory); } - protected abstract void addProtocolHandlers(PipelineBuilder pipeline) throws Exception; + protected abstract void addProtocolHandlers(PipelineBuilder pipeline, Config config) throws Exception; public String[] getDevices() { return devices; |