mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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:
parent
f79e4bcb9c
commit
2b90a9e502
4 changed files with 6 additions and 6 deletions
|
@ -178,7 +178,7 @@ public class Authentication extends IQ {
|
|||
this.resource = resource;
|
||||
}
|
||||
|
||||
public String getQueryXML() {
|
||||
public String getChildElementXML() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append("<query xmlns=\"jabber:iq:auth\">");
|
||||
if (username != null) {
|
||||
|
|
|
@ -102,7 +102,7 @@ public class IQ extends Packet {
|
|||
buf.append("type=\"").append(getType()).append("\">");
|
||||
}
|
||||
// Add the query section if there is one.
|
||||
String queryXML = getQueryXML();
|
||||
String queryXML = getChildElementXML();
|
||||
if (queryXML != null) {
|
||||
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>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
public String getQueryXML() {
|
||||
public String getChildElementXML() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ public class Registration extends IQ {
|
|||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
public String getQueryXML() {
|
||||
public String getChildElementXML() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append("<query xmlns=\"jabber:iq:register\">");
|
||||
if (username != null) {
|
||||
|
|
|
@ -86,7 +86,7 @@ public class RosterPacket extends IQ {
|
|||
}
|
||||
}
|
||||
|
||||
public String getQueryXML() {
|
||||
public String getChildElementXML() {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
buf.append("<query xmlns=\"jabber:iq:roster\">");
|
||||
synchronized (rosterItems) {
|
||||
|
|
Loading…
Reference in a new issue