1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 17:52:06 +01:00

Renamed IQ method to better match what it does.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1937 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-05-14 21:51:03 +00:00 committed by mtucker
parent f79e4bcb9c
commit 2b90a9e502
4 changed files with 6 additions and 6 deletions

View file

@ -178,7 +178,7 @@ public class Authentication extends IQ {
this.resource = resource; this.resource = resource;
} }
public String getQueryXML() { public String getChildElementXML() {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("<query xmlns=\"jabber:iq:auth\">"); buf.append("<query xmlns=\"jabber:iq:auth\">");
if (username != null) { if (username != null) {

View file

@ -102,7 +102,7 @@ public class IQ extends Packet {
buf.append("type=\"").append(getType()).append("\">"); buf.append("type=\"").append(getType()).append("\">");
} }
// Add the query section if there is one. // Add the query section if there is one.
String queryXML = getQueryXML(); String queryXML = getChildElementXML();
if (queryXML != null) { if (queryXML != null) {
buf.append(queryXML); buf.append(queryXML);
} }
@ -116,7 +116,7 @@ public class IQ extends Packet {
} }
/** /**
* Returns the "query" XML section of the IQ packet, or <tt>null</tt> if there * Returns the sub-element XML section of the IQ packet, or <tt>null</tt> if there
* isn't one.<p> * isn't one.<p>
* *
* Generally, extensions of this class should override this method. This lets * Generally, extensions of this class should override this method. This lets
@ -125,7 +125,7 @@ public class IQ extends Packet {
* *
* @return the query section of the IQ XML. * @return the query section of the IQ XML.
*/ */
public String getQueryXML() { public String getChildElementXML() {
return null; return null;
} }

View file

@ -138,7 +138,7 @@ public class Registration extends IQ {
this.attributes = attributes; this.attributes = attributes;
} }
public String getQueryXML() { public String getChildElementXML() {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("<query xmlns=\"jabber:iq:register\">"); buf.append("<query xmlns=\"jabber:iq:register\">");
if (username != null) { if (username != null) {

View file

@ -86,7 +86,7 @@ public class RosterPacket extends IQ {
} }
} }
public String getQueryXML() { public String getChildElementXML() {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("<query xmlns=\"jabber:iq:roster\">"); buf.append("<query xmlns=\"jabber:iq:roster\">");
synchronized (rosterItems) { synchronized (rosterItems) {