diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 12:28:28 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 12:28:28 +1200 |
commit | 639b427eba5738534c10f591e285d707e8b060e5 (patch) | |
tree | bdafa0f9751c77561ade92ebed272b6d6545ea43 /src/org/traccar/RemoteAddressHandler.java | |
parent | 2badcd16f7ae0ce46f7c0cd241c635493d7e6508 (diff) | |
download | trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.gz trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.tar.bz2 trackermap-server-639b427eba5738534c10f591e285d707e8b060e5.zip |
Re-factor decoder interface
Diffstat (limited to 'src/org/traccar/RemoteAddressHandler.java')
-rw-r--r-- | src/org/traccar/RemoteAddressHandler.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/org/traccar/RemoteAddressHandler.java b/src/org/traccar/RemoteAddressHandler.java index 3aa28daf7..d9522020d 100644 --- a/src/org/traccar/RemoteAddressHandler.java +++ b/src/org/traccar/RemoteAddressHandler.java @@ -15,23 +15,18 @@ */ package org.traccar; -import org.jboss.netty.channel.Channel; -import org.jboss.netty.channel.ChannelHandlerContext; -import org.jboss.netty.handler.codec.oneone.OneToOneDecoder; -import org.traccar.geocode.AddressFormat; -import org.traccar.geocode.ReverseGeocoder; -import org.traccar.model.Event; -import org.traccar.model.Position; - import java.net.InetSocketAddress; import java.net.SocketAddress; import java.util.List; +import org.jboss.netty.channel.Channel; +import org.traccar.model.Event; +import org.traccar.model.Position; public class RemoteAddressHandler extends ExtendedObjectDecoder { @Override protected Object decode( - ChannelHandlerContext ctx, Channel channel, SocketAddress remoteAddress, Object msg) + Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { String hostAddress = ((InetSocketAddress) remoteAddress).getAddress().getHostAddress(); |