mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Consider enclosing namespace in Stream Management elements
This commit is contained in:
parent
808bb97332
commit
01f9b228f2
1 changed files with 6 additions and 6 deletions
|
@ -48,7 +48,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public CharSequence toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
xml.closeEmptyElement();
|
||||
return xml;
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public CharSequence toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
maybeAddResumeAttributeTo(xml);
|
||||
maybeAddMaxAttributeTo(xml);
|
||||
xml.closeEmptyElement();
|
||||
|
@ -175,7 +175,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public CharSequence toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
xml.optAttribute("id", id);
|
||||
maybeAddResumeAttributeTo(xml);
|
||||
xml.optAttribute("location", location);
|
||||
|
@ -221,7 +221,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public CharSequence toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
if (condition == null && textElements.isEmpty()) {
|
||||
xml.closeEmptyElement();
|
||||
} else {
|
||||
|
@ -274,7 +274,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public final XmlStringBuilder toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
xml.attribute("h", Long.toString(handledCount));
|
||||
xml.attribute("previd", previd);
|
||||
xml.closeEmptyElement();
|
||||
|
@ -323,7 +323,7 @@ public class StreamManagement {
|
|||
|
||||
@Override
|
||||
public CharSequence toXML(String enclosingNamespace) {
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
||||
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||
xml.attribute("h", Long.toString(handledCount));
|
||||
xml.closeEmptyElement();
|
||||
return xml;
|
||||
|
|
Loading…
Reference in a new issue