mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 22:11:07 +01:00
Introduce XmlEnvironment
This commit is contained in:
parent
dc780ffd6c
commit
fee3ed81ca
229 changed files with 715 additions and 526 deletions
|
|
@ -146,7 +146,7 @@ public class StreamInitiation extends IQ {
|
|||
buf.rightAngleBracket();
|
||||
|
||||
// Add the file section if there is one.
|
||||
buf.optAppend(file.toXML(null));
|
||||
buf.optAppend(file.toXML());
|
||||
break;
|
||||
case result:
|
||||
buf.rightAngleBracket();
|
||||
|
|
@ -155,7 +155,7 @@ public class StreamInitiation extends IQ {
|
|||
throw new IllegalArgumentException("IQ Type not understood");
|
||||
}
|
||||
if (featureNegotiation != null) {
|
||||
buf.append(featureNegotiation.toXML(null));
|
||||
buf.append(featureNegotiation.toXML());
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
|
@ -327,7 +327,7 @@ public class StreamInitiation extends IQ {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String toXML(String enclosingNamespace) {
|
||||
public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
|
||||
StringBuilder buffer = new StringBuilder();
|
||||
|
||||
buffer.append('<').append(getElementName()).append(" xmlns=\"")
|
||||
|
|
@ -405,11 +405,11 @@ public class StreamInitiation extends IQ {
|
|||
}
|
||||
|
||||
@Override
|
||||
public String toXML(String enclosingNamespace) {
|
||||
public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf
|
||||
.append("<feature xmlns=\"http://jabber.org/protocol/feature-neg\">");
|
||||
buf.append(data.toXML(null));
|
||||
buf.append(data.toXML());
|
||||
buf.append("</feature>");
|
||||
return buf.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue