mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-24 07:12:05 +01:00
Pass XmlEnvironment to toXML()
This commit is contained in:
parent
25d64a439c
commit
609ace2f0d
3 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ import org.jxmpp.jid.EntityBareJid;
|
||||||
* <p>
|
* <p>
|
||||||
* Fetching avatars published via HTTP is out of scope of this manager. If you do implement it, remember to mark the
|
* Fetching avatars published via HTTP is out of scope of this manager. If you do implement it, remember to mark the
|
||||||
* avatar as locally available in your {@link AvatarMetadataStore} after you retrieved it.
|
* avatar as locally available in your {@link AvatarMetadataStore} after you retrieved it.
|
||||||
*
|
*
|
||||||
* @author Fernando Ramirez
|
* @author Fernando Ramirez
|
||||||
* @author Paul Schaub
|
* @author Paul Schaub
|
||||||
* @see <a href="http://xmpp.org/extensions/xep-0084.html">XEP-0084: User
|
* @see <a href="http://xmpp.org/extensions/xep-0084.html">XEP-0084: User
|
||||||
|
|
|
@ -92,7 +92,7 @@ public class DataExtension implements ExtensionElement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(XmlEnvironment xmlEnvironment) {
|
public CharSequence toXML(XmlEnvironment xmlEnvironment) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
|
||||||
xml.rightAngleBracket();
|
xml.rightAngleBracket();
|
||||||
xml.escape(this.getDataAsString());
|
xml.escape(this.getDataAsString());
|
||||||
xml.closeElement(this);
|
xml.closeElement(this);
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class MetadataExtension implements ExtensionElement {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CharSequence toXML(XmlEnvironment xmlEnvironment) {
|
public CharSequence toXML(XmlEnvironment xmlEnvironment) {
|
||||||
XmlStringBuilder xml = new XmlStringBuilder(this);
|
XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
|
||||||
appendInfoElements(xml);
|
appendInfoElements(xml);
|
||||||
appendPointerElements(xml);
|
appendPointerElements(xml);
|
||||||
closeElement(xml);
|
closeElement(xml);
|
||||||
|
|
Loading…
Reference in a new issue