aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-18 12:56:51 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-18 12:56:51 +1200
commita90ce59795690267a0924c2b911f14fe0340a6b4 (patch)
tree5de6442a5a6cc4ed44d7b62cc75f1300a988eb84 /src/org/traccar/BasePipelineFactory.java
parentafaede42a0cc8170128219bd1dfa6277e4e1809a (diff)
parent21ed9dbbd8c7be191894b11e895c1c0094b4aac6 (diff)
downloadtrackermap-server-a90ce59795690267a0924c2b911f14fe0340a6b4.tar.gz
trackermap-server-a90ce59795690267a0924c2b911f14fe0340a6b4.tar.bz2
trackermap-server-a90ce59795690267a0924c2b911f14fe0340a6b4.zip
Merge from mungingLabs into odometer
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 4d8b0ffc4..6c4a6b5bd 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -25,7 +25,6 @@ import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.Channels;
import org.jboss.netty.channel.DownstreamMessageEvent;
-import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.channel.SimpleChannelHandler;
import org.jboss.netty.handler.logging.LoggingHandler;
@@ -38,6 +37,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
private int resetDelay;
private FilterHandler filterHandler;
+ private OdometerHandler odometerHandler;
private ReverseGeocoderHandler reverseGeocoderHandler;
protected class OpenChannelHandler extends SimpleChannelHandler {
@@ -114,6 +114,9 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
if (filterHandler != null) {
pipeline.addLast("filter", filterHandler);
}
+ if (odometerHandler != null) {
+ pipeline.addLast("odometer", odometerHandler);
+ }
if (reverseGeocoderHandler != null) {
pipeline.addLast("geocoder", reverseGeocoderHandler);
}