Fix typo in method name
This commit is contained in:
parent
c50903036d
commit
b48bddb852
|
@ -141,12 +141,12 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
||||||
.discoResponse(packet);
|
.discoResponse(packet);
|
||||||
account.getXmppConnection().sendIqPacket(response, null);
|
account.getXmppConnection().sendIqPacket(response, null);
|
||||||
} else if (packet.hasChild("ping", "urn:xmpp:ping")) {
|
} else if (packet.hasChild("ping", "urn:xmpp:ping")) {
|
||||||
final IqPacket response = packet.generateRespone(IqPacket.TYPE_RESULT);
|
final IqPacket response = packet.generateResponse(IqPacket.TYPE_RESULT);
|
||||||
mXmppConnectionService.sendIqPacket(account, response, null);
|
mXmppConnectionService.sendIqPacket(account, response, null);
|
||||||
} else {
|
} else {
|
||||||
if ((packet.getType() == IqPacket.TYPE_GET)
|
if ((packet.getType() == IqPacket.TYPE_GET)
|
||||||
|| (packet.getType() == IqPacket.TYPE_SET)) {
|
|| (packet.getType() == IqPacket.TYPE_SET)) {
|
||||||
final IqPacket response = packet.generateRespone(IqPacket.TYPE_ERROR);
|
final IqPacket response = packet.generateResponse(IqPacket.TYPE_ERROR);
|
||||||
final Element error = response.addChild("error");
|
final Element error = response.addChild("error");
|
||||||
error.setAttribute("type", "cancel");
|
error.setAttribute("type", "cancel");
|
||||||
error.addChild("feature-not-implemented",
|
error.addChild("feature-not-implemented",
|
||||||
|
|
|
@ -191,10 +191,10 @@ public class JingleConnection implements Downloadable {
|
||||||
}
|
}
|
||||||
IqPacket response;
|
IqPacket response;
|
||||||
if (returnResult) {
|
if (returnResult) {
|
||||||
response = packet.generateRespone(IqPacket.TYPE_RESULT);
|
response = packet.generateResponse(IqPacket.TYPE_RESULT);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
response = packet.generateRespone(IqPacket.TYPE_ERROR);
|
response = packet.generateResponse(IqPacket.TYPE_ERROR);
|
||||||
}
|
}
|
||||||
account.getXmppConnection().sendIqPacket(response, null);
|
account.getXmppConnection().sendIqPacket(response, null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IqPacket response = packet.generateRespone(IqPacket.TYPE_ERROR);
|
IqPacket response = packet.generateResponse(IqPacket.TYPE_ERROR);
|
||||||
Element error = response.addChild("error");
|
Element error = response.addChild("error");
|
||||||
error.setAttribute("type", "cancel");
|
error.setAttribute("type", "cancel");
|
||||||
error.addChild("item-not-found",
|
error.addChild("item-not-found",
|
||||||
|
|
|
@ -208,15 +208,15 @@ public class JingleInbandTransport extends JingleTransport {
|
||||||
established = true;
|
established = true;
|
||||||
connected = true;
|
connected = true;
|
||||||
this.account.getXmppConnection().sendIqPacket(
|
this.account.getXmppConnection().sendIqPacket(
|
||||||
packet.generateRespone(IqPacket.TYPE_RESULT), null);
|
packet.generateResponse(IqPacket.TYPE_RESULT), null);
|
||||||
} else {
|
} else {
|
||||||
this.account.getXmppConnection().sendIqPacket(
|
this.account.getXmppConnection().sendIqPacket(
|
||||||
packet.generateRespone(IqPacket.TYPE_ERROR), null);
|
packet.generateResponse(IqPacket.TYPE_ERROR), null);
|
||||||
}
|
}
|
||||||
} else if (connected && payload.getName().equals("data")) {
|
} else if (connected && payload.getName().equals("data")) {
|
||||||
this.receiveNextBlock(payload.getContent());
|
this.receiveNextBlock(payload.getContent());
|
||||||
this.account.getXmppConnection().sendIqPacket(
|
this.account.getXmppConnection().sendIqPacket(
|
||||||
packet.generateRespone(IqPacket.TYPE_RESULT), null);
|
packet.generateResponse(IqPacket.TYPE_RESULT), null);
|
||||||
} else {
|
} else {
|
||||||
// TODO some sort of exception
|
// TODO some sort of exception
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class IqPacket extends AbstractStanza {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IqPacket generateRespone(final int type) {
|
public IqPacket generateResponse(final int type) {
|
||||||
final IqPacket packet = new IqPacket(type);
|
final IqPacket packet = new IqPacket(type);
|
||||||
packet.setTo(this.getFrom());
|
packet.setTo(this.getFrom());
|
||||||
packet.setId(this.getId());
|
packet.setId(this.getId());
|
||||||
|
|
Loading…
Reference in a new issue