mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +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
|
@Override
|
||||||
public CharSequence toXML(String enclosingNamespace) {
|
public CharSequence toXML(String enclosingNamespace) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
return xml;
|
return xml;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ public class StreamManagement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(String enclosingNamespace) {
|
public CharSequence toXML(String enclosingNamespace) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||||
maybeAddResumeAttributeTo(xml);
|
maybeAddResumeAttributeTo(xml);
|
||||||
maybeAddMaxAttributeTo(xml);
|
maybeAddMaxAttributeTo(xml);
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
|
@ -175,7 +175,7 @@ public class StreamManagement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(String enclosingNamespace) {
|
public CharSequence toXML(String enclosingNamespace) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||||
xml.optAttribute("id", id);
|
xml.optAttribute("id", id);
|
||||||
maybeAddResumeAttributeTo(xml);
|
maybeAddResumeAttributeTo(xml);
|
||||||
xml.optAttribute("location", location);
|
xml.optAttribute("location", location);
|
||||||
|
@ -221,7 +221,7 @@ public class StreamManagement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(String enclosingNamespace) {
|
public CharSequence toXML(String enclosingNamespace) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||||
if (condition == null && textElements.isEmpty()) {
|
if (condition == null && textElements.isEmpty()) {
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
} else {
|
} else {
|
||||||
|
@ -274,7 +274,7 @@ public class StreamManagement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final XmlStringBuilder toXML(String enclosingNamespace) {
|
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("h", Long.toString(handledCount));
|
||||||
xml.attribute("previd", previd);
|
xml.attribute("previd", previd);
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
|
@ -323,7 +323,7 @@ public class StreamManagement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(String enclosingNamespace) {
|
public CharSequence toXML(String enclosingNamespace) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
|
||||||
xml.attribute("h", Long.toString(handledCount));
|
xml.attribute("h", Long.toString(handledCount));
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
return xml;
|
return xml;
|
||||||
|
|
Loading…
Reference in a new issue