diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:41:56 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:41:56 +1300 |
commit | 679c2852e3c4987091e0b84b7e7d80a9f72964a0 (patch) | |
tree | c0fe0ab222bbd251b25e3520c5f62c68669fbaa2 /src/org/traccar/BasePipelineFactory.java | |
parent | 68569c05fb4be377baed5cd0ecb1b75176d24f01 (diff) | |
download | trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.tar.gz trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.tar.bz2 trackermap-server-679c2852e3c4987091e0b84b7e7d80a9f72964a0.zip |
Add exception classes and more renames
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 94a6d85aa..d949c9c9c 100644 --- a/src/org/traccar/BasePipelineFactory.java +++ b/src/org/traccar/BasePipelineFactory.java @@ -48,8 +48,8 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { private FilterHandler filterHandler; private CoordinatesHandler coordinatesHandler; private DistanceHandler distanceHandler; - private ReverseGeocoderHandler reverseGeocoderHandler; - private LocationProviderHandler locationProviderHandler; + private GeocoderHandler geocoderHandler; + private GeolocationHandler geolocationHandler; private HemisphereHandler hemisphereHandler; private CopyAttributesHandler copyAttributesHandler; @@ -125,13 +125,13 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { coordinatesHandler = new CoordinatesHandler(); } - if (Context.getReverseGeocoder() != null) { - reverseGeocoderHandler = new ReverseGeocoderHandler( - Context.getReverseGeocoder(), Context.getConfig().getBoolean("geocoder.processInvalidPositions")); + if (Context.getGeocoder() != null) { + geocoderHandler = new GeocoderHandler( + Context.getGeocoder(), Context.getConfig().getBoolean("geocoder.processInvalidPositions")); } if (Context.getGeolocationProvider() != null) { - locationProviderHandler = new LocationProviderHandler( + geolocationHandler = new GeolocationHandler( Context.getGeolocationProvider(), Context.getConfig().getBoolean("location.processInvalidPositions")); } @@ -189,11 +189,11 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory { if (hemisphereHandler != null) { pipeline.addLast("hemisphere", hemisphereHandler); } - if (reverseGeocoderHandler != null) { - pipeline.addLast("geocoder", reverseGeocoderHandler); + if (geocoderHandler != null) { + pipeline.addLast("geocoder", geocoderHandler); } - if (locationProviderHandler != null) { - pipeline.addLast("location", locationProviderHandler); + if (geolocationHandler != null) { + pipeline.addLast("location", geolocationHandler); } pipeline.addLast("remoteAddress", new RemoteAddressHandler()); |