aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 4ff4030f0..689b63ab6 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -125,7 +125,13 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
pipeline.addLast("geocoder", new ReverseGeocoderHandler(Context.getReverseGeocoder(), processInvalidPositions));
}
pipeline.addLast("remoteAddress", new RemoteAddressHandler());
- pipeline.addLast("handler", new MainEventHandler());
+ if (Context.getDataManager() != null) {
+ pipeline.addLast("dataHandler", new DefaultDataHandler());
+ }
+ if (Boolean.valueOf(Context.getProps().getProperty("forward.enable"))) {
+ pipeline.addLast("webHandler", new WebDataHandler(Context.getProps().getProperty("forward.url")));
+ }
+ pipeline.addLast("mainHandler", new MainEventHandler());
return pipeline;
}