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);
|
||||
account.getXmppConnection().sendIqPacket(response, null);
|
||||
} 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);
|
||||
} else {
|
||||
if ((packet.getType() == IqPacket.TYPE_GET)
|
||||
|| (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");
|
||||
error.setAttribute("type", "cancel");
|
||||
error.addChild("feature-not-implemented",
|
||||
|
|
|
@ -191,10 +191,10 @@ public class JingleConnection implements Downloadable {
|
|||
}
|
||||
IqPacket response;
|
||||
if (returnResult) {
|
||||
response = packet.generateRespone(IqPacket.TYPE_RESULT);
|
||||
response = packet.generateResponse(IqPacket.TYPE_RESULT);
|
||||
|
||||
} else {
|
||||
response = packet.generateRespone(IqPacket.TYPE_ERROR);
|
||||
response = packet.generateResponse(IqPacket.TYPE_ERROR);
|
||||
}
|
||||
account.getXmppConnection().sendIqPacket(response, null);
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
|||
return;
|
||||
}
|
||||
}
|
||||
IqPacket response = packet.generateRespone(IqPacket.TYPE_ERROR);
|
||||
IqPacket response = packet.generateResponse(IqPacket.TYPE_ERROR);
|
||||
Element error = response.addChild("error");
|
||||
error.setAttribute("type", "cancel");
|
||||
error.addChild("item-not-found",
|
||||
|
|
|
@ -208,15 +208,15 @@ public class JingleInbandTransport extends JingleTransport {
|
|||
established = true;
|
||||
connected = true;
|
||||
this.account.getXmppConnection().sendIqPacket(
|
||||
packet.generateRespone(IqPacket.TYPE_RESULT), null);
|
||||
packet.generateResponse(IqPacket.TYPE_RESULT), null);
|
||||
} else {
|
||||
this.account.getXmppConnection().sendIqPacket(
|
||||
packet.generateRespone(IqPacket.TYPE_ERROR), null);
|
||||
packet.generateResponse(IqPacket.TYPE_ERROR), null);
|
||||
}
|
||||
} else if (connected && payload.getName().equals("data")) {
|
||||
this.receiveNextBlock(payload.getContent());
|
||||
this.account.getXmppConnection().sendIqPacket(
|
||||
packet.generateRespone(IqPacket.TYPE_RESULT), null);
|
||||
packet.generateResponse(IqPacket.TYPE_RESULT), null);
|
||||
} else {
|
||||
// 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);
|
||||
packet.setTo(this.getFrom());
|
||||
packet.setId(this.getId());
|
||||
|
|
Loading…
Reference in New Issue