aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-05-13 18:38:01 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-05-13 18:38:01 -0700
commitaf05ce7e7a5275140d6e0a7961462a83e9abee67 (patch)
treefe4aac1a684d08642bb11286d779608ac915f8ff /src/main
parenta09654ab3c4b540d1c4c768ad4c7ec7c1404332d (diff)
downloadtraccar-server-af05ce7e7a5275140d6e0a7961462a83e9abee67.tar.gz
traccar-server-af05ce7e7a5275140d6e0a7961462a83e9abee67.tar.bz2
traccar-server-af05ce7e7a5275140d6e0a7961462a83e9abee67.zip
Unify response method names
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/BlackKiteProtocolDecoder.java4
-rw-r--r--src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java4
-rw-r--r--src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java6
3 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/protocol/BlackKiteProtocolDecoder.java b/src/main/java/org/traccar/protocol/BlackKiteProtocolDecoder.java
index dca4b908a..474ceabdc 100644
--- a/src/main/java/org/traccar/protocol/BlackKiteProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BlackKiteProtocolDecoder.java
@@ -56,7 +56,7 @@ public class BlackKiteProtocolDecoder extends BaseProtocolDecoder {
private static final int TAG_XT2 = 0x61;
private static final int TAG_XT3 = 0x62;
- private void sendReply(Channel channel, int checksum) {
+ private void sendResponse(Channel channel, int checksum) {
if (channel != null) {
ByteBuf reply = Unpooled.buffer(3);
reply.writeByte(0x02);
@@ -179,7 +179,7 @@ public class BlackKiteProtocolDecoder extends BaseProtocolDecoder {
return null;
}
- sendReply(channel, buf.readUnsignedShortLE());
+ sendResponse(channel, buf.readUnsignedShortLE());
for (Position p : positions) {
p.setDeviceId(deviceSession.getDeviceId());
diff --git a/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java b/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java
index f53c01234..14d14f4b6 100644
--- a/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/CellocatorProtocolDecoder.java
@@ -45,7 +45,7 @@ public class CellocatorProtocolDecoder extends BaseProtocolDecoder {
private byte commandCount;
- private void sendReply(Channel channel, SocketAddress remoteAddress, long deviceId, byte packetNumber) {
+ private void sendResponse(Channel channel, SocketAddress remoteAddress, long deviceId, byte packetNumber) {
if (channel != null) {
ByteBuf reply = Unpooled.buffer(28);
reply.writeByte('M');
@@ -225,7 +225,7 @@ public class CellocatorProtocolDecoder extends BaseProtocolDecoder {
}
byte packetNumber = buf.readByte();
- sendReply(channel, remoteAddress, deviceUniqueId, packetNumber);
+ sendResponse(channel, remoteAddress, deviceUniqueId, packetNumber);
if (type == MSG_CLIENT_STATUS) {
return decodeStatus(buf, deviceSession, alternative);
diff --git a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
index 01c55a9ae..5b843324c 100644
--- a/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/GalileoProtocolDecoder.java
@@ -96,7 +96,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
return length;
}
- private void sendReply(Channel channel, int header, int checksum) {
+ private void sendResponse(Channel channel, int header, int checksum) {
if (channel != null) {
ByteBuf reply = Unpooled.buffer(3);
reply.writeByte(header);
@@ -293,7 +293,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
positions.add(position);
}
- sendReply(channel, 0x02, buf.readUnsignedShortLE());
+ sendResponse(channel, 0x02, buf.readUnsignedShortLE());
for (Position p : positions) {
p.setDeviceId(deviceSession.getDeviceId());
@@ -334,7 +334,7 @@ public class GalileoProtocolDecoder extends BaseProtocolDecoder {
}
- sendReply(channel, 0x07, buf.readUnsignedShortLE());
+ sendResponse(channel, 0x07, buf.readUnsignedShortLE());
return position;
}