diff options
author | namo <namo@gurtam.com> | 2017-10-20 09:30:36 +0300 |
---|---|---|
committer | namo <namo@gurtam.com> | 2017-10-20 09:30:36 +0300 |
commit | 8483681361a386d0159422ed089ed3360161811c (patch) | |
tree | d68e1703030582be68c956ef6bb455229e44581b /src/org/traccar/ExtendedObjectDecoder.java | |
parent | fb82a8167b99f706cb25d828bf1d72424ba98a75 (diff) | |
download | trackermap-server-8483681361a386d0159422ed089ed3360161811c.tar.gz trackermap-server-8483681361a386d0159422ed089ed3360161811c.tar.bz2 trackermap-server-8483681361a386d0159422ed089ed3360161811c.zip |
Revert "flespi integration: listening messages"
This reverts commit fb82a8167b99f706cb25d828bf1d72424ba98a75.
Diffstat (limited to 'src/org/traccar/ExtendedObjectDecoder.java')
-rw-r--r-- | src/org/traccar/ExtendedObjectDecoder.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/org/traccar/ExtendedObjectDecoder.java b/src/org/traccar/ExtendedObjectDecoder.java index a9b3a1053..268e6f688 100644 --- a/src/org/traccar/ExtendedObjectDecoder.java +++ b/src/org/traccar/ExtendedObjectDecoder.java @@ -29,9 +29,6 @@ import javax.xml.bind.DatatypeConverter; import java.net.SocketAddress; import java.nio.charset.StandardCharsets; import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Map; public abstract class ExtendedObjectDecoder implements ChannelUpstreamHandler { @@ -72,16 +69,6 @@ public abstract class ExtendedObjectDecoder implements ChannelUpstreamHandler { saveOriginal(o, originalMessage); Channels.fireMessageReceived(ctx, o, e.getRemoteAddress()); } - } else if (decodedMessage instanceof Map) { - Iterator it = ((Map) decodedMessage).entrySet().iterator(); - while (it.hasNext()) { - Map.Entry pair = (Map.Entry) it.next(); - List<Position> positions = (List<Position>) pair.getValue(); - for (Position position : positions) { - saveOriginal(position, originalMessage); - Channels.fireMessageReceived(ctx, position, e.getRemoteAddress()); - } - } } else { saveOriginal(decodedMessage, originalMessage); Channels.fireMessageReceived(ctx, decodedMessage, e.getRemoteAddress()); |