aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authoramilasilva88 <amilasilva88@gmail.com>2015-08-14 11:46:27 +0800
committeramilasilva88 <amilasilva88@gmail.com>2015-08-14 11:46:27 +0800
commita70f478740514e6e60ffbe49906a9c6150b2ec99 (patch)
tree23e06e979f88ca33609da50b41b2648fbe62469d /src/org/traccar/BasePipelineFactory.java
parent077b5a737cf735002e9bf74859c915444452f835 (diff)
downloadtrackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.gz
trackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.bz2
trackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.zip
Refactoring - tabs to spaces and naming conventions
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 410b57318..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,7 +37,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
private int resetDelay;
private FilterHandler filterHandler;
- private ODOMeterHandler odoMeterHandler;
+ private OdometerHandler odometerHandler;
private ReverseGeocoderHandler reverseGeocoderHandler;
protected class OpenChannelHandler extends SimpleChannelHandler {
@@ -93,10 +92,6 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
filterHandler = new FilterHandler();
}
- if (Context.getConfig().getBoolean("system.odometer.enable")) {
- odoMeterHandler = new ODOMeterHandler();
- }
-
if (Context.getReverseGeocoder() != null) {
reverseGeocoderHandler = new ReverseGeocoderHandler(
Context.getReverseGeocoder(), Context.getConfig().getBoolean("geocode.processInvalidPositions"));
@@ -119,11 +114,9 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
if (filterHandler != null) {
pipeline.addLast("filter", filterHandler);
}
-
- if (odoMeterHandler != null) {
- pipeline.addLast("odoMeter", odoMeterHandler);
+ if (odometerHandler != null) {
+ pipeline.addLast("odometer", odometerHandler);
}
-
if (reverseGeocoderHandler != null) {
pipeline.addLast("geocoder", reverseGeocoderHandler);
}