diff options
author | Abyss777 <abyss@fox5.ru> | 2017-07-12 14:22:03 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-07-12 15:20:07 +0500 |
commit | b19f1a505f7088ff48f467b32b5f1c207aa3be01 (patch) | |
tree | 663ef14ec15af04e5d9062c2185cd020fb5b9e42 /src/org/traccar/BasePipelineFactory.java | |
parent | 4f3830d844dd0542e9e7b09e7a6c17ffbb796264 (diff) | |
download | trackermap-server-b19f1a505f7088ff48f467b32b5f1c207aa3be01.tar.gz trackermap-server-b19f1a505f7088ff48f467b32b5f1c207aa3be01.tar.bz2 trackermap-server-b19f1a505f7088ff48f467b32b5f1c207aa3be01.zip |
- Handle rfid attributes and populate driverUniqueId
- Add Driver Name to Trip report
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index a6446dbaa..9f0824b6c 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -40,6 +40,7 @@ import org.traccar.events.AlertEventHandler; import org.traccar.helper.Log; import org.traccar.processing.ComputedAttributesHandler; import org.traccar.processing.CopyAttributesHandler; +import org.traccar.processing.PopulateDriverHandler; import java.net.InetSocketAddress; @@ -54,6 +55,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { private GeocoderHandler geocoderHandler; private GeolocationHandler geolocationHandler; private HemisphereHandler hemisphereHandler; + private PopulateDriverHandler populateDriverHandler; private CopyAttributesHandler copyAttributesHandler; private ComputedAttributesHandler computedAttributesHandler; @@ -152,6 +154,8 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { hemisphereHandler = new HemisphereHandler(); } + populateDriverHandler = new PopulateDriverHandler(); + if (Context.getConfig().getBoolean("processing.copyAttributes.enable")) { copyAttributesHandler = new CopyAttributesHandler(); } @@ -214,6 +218,10 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { pipeline.addLast("motion", motionHandler); } + if (populateDriverHandler != null) { + pipeline.addLast("populateDriver", populateDriverHandler); + } + if (copyAttributesHandler != null) { pipeline.addLast("copyAttributes", copyAttributesHandler); } |