diff options
-rw-r--r-- | debug.xml | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/TelicProtocol.java (renamed from src/org/traccar/protocol/TelikProtocol.java) | 8 | ||||
-rw-r--r-- | src/org/traccar/protocol/TelicProtocolDecoder.java (renamed from src/org/traccar/protocol/TelikProtocolDecoder.java) | 4 | ||||
-rw-r--r-- | test/org/traccar/protocol/TelicProtocolDecoderTest.java (renamed from test/org/traccar/protocol/TelikProtocolDecoderTest.java) | 4 |
4 files changed, 9 insertions, 9 deletions
@@ -235,7 +235,7 @@ <entry key='eelink.port'>5064</entry> <entry key='box.port'>5065</entry> <entry key='freedom.port'>5066</entry> - <entry key='telik.port'>5067</entry> + <entry key='telic.port'>5067</entry> <entry key='trackbox.port'>5068</entry> <entry key='visiontek.port'>5069</entry> <entry key='orion.port'>5070</entry> diff --git a/src/org/traccar/protocol/TelikProtocol.java b/src/org/traccar/protocol/TelicProtocol.java index b6b5ba14d..c2a7287dd 100644 --- a/src/org/traccar/protocol/TelikProtocol.java +++ b/src/org/traccar/protocol/TelicProtocol.java @@ -24,10 +24,10 @@ import org.traccar.TrackerServer; import java.util.List; -public class TelikProtocol extends BaseProtocol { +public class TelicProtocol extends BaseProtocol { - public TelikProtocol() { - super("telik"); + public TelicProtocol() { + super("telic"); } @Override @@ -37,7 +37,7 @@ public class TelikProtocol extends BaseProtocol { protected void addSpecificHandlers(ChannelPipeline pipeline) { pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, '\0')); pipeline.addLast("stringDecoder", new StringDecoder()); - pipeline.addLast("objectDecoder", new TelikProtocolDecoder(TelikProtocol.this)); + pipeline.addLast("objectDecoder", new TelicProtocolDecoder(TelicProtocol.this)); } }); } diff --git a/src/org/traccar/protocol/TelikProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java index 4171750d6..466b40aa4 100644 --- a/src/org/traccar/protocol/TelikProtocolDecoder.java +++ b/src/org/traccar/protocol/TelicProtocolDecoder.java @@ -25,9 +25,9 @@ import org.traccar.helper.PatternBuilder; import org.traccar.model.Event; import org.traccar.model.Position; -public class TelikProtocolDecoder extends BaseProtocolDecoder { +public class TelicProtocolDecoder extends BaseProtocolDecoder { - public TelikProtocolDecoder(TelikProtocol protocol) { + public TelicProtocolDecoder(TelicProtocol protocol) { super(protocol); } diff --git a/test/org/traccar/protocol/TelikProtocolDecoderTest.java b/test/org/traccar/protocol/TelicProtocolDecoderTest.java index 180ab1b3d..536875a2f 100644 --- a/test/org/traccar/protocol/TelikProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TelicProtocolDecoderTest.java @@ -3,12 +3,12 @@ package org.traccar.protocol; import org.junit.Test; import org.traccar.ProtocolTest; -public class TelikProtocolDecoderTest extends ProtocolTest { +public class TelicProtocolDecoderTest extends ProtocolTest { @Test public void testDecode() throws Exception { - TelikProtocolDecoder decoder = new TelikProtocolDecoder(new TelikProtocol()); + TelicProtocolDecoder decoder = new TelicProtocolDecoder(new TelicProtocol()); verifyNothing(decoder, text( "0026436729|232|01|003002030")); |