mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 07:42:06 +01:00
[offline] Add OfflineMessageInfo.QNAME field
Fixes SMACK-905.
This commit is contained in:
parent
b0abfe1bba
commit
36c7521ca2
1 changed files with 7 additions and 2 deletions
|
@ -19,11 +19,14 @@ package org.jivesoftware.smackx.offline.packet;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.jivesoftware.smack.packet.ExtensionElement;
|
||||
import org.jivesoftware.smack.packet.XmlEnvironment;
|
||||
import org.jivesoftware.smack.provider.ExtensionElementProvider;
|
||||
import org.jivesoftware.smack.xml.XmlPullParser;
|
||||
import org.jivesoftware.smack.xml.XmlPullParserException;
|
||||
import org.jivesoftware.smackx.offline.OfflineMessageManager;
|
||||
|
||||
/**
|
||||
* OfflineMessageInfo is an extension included in the retrieved offline messages requested by
|
||||
|
@ -35,6 +38,8 @@ import org.jivesoftware.smack.xml.XmlPullParserException;
|
|||
*/
|
||||
public class OfflineMessageInfo implements ExtensionElement {
|
||||
|
||||
public static final QName QNAME = new QName(OfflineMessageManager.NAMESPACE, "offline");
|
||||
|
||||
private String node = null;
|
||||
|
||||
/**
|
||||
|
@ -45,7 +50,7 @@ public class OfflineMessageInfo implements ExtensionElement {
|
|||
*/
|
||||
@Override
|
||||
public String getElementName() {
|
||||
return "offline";
|
||||
return QNAME.getLocalPart();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +61,7 @@ public class OfflineMessageInfo implements ExtensionElement {
|
|||
*/
|
||||
@Override
|
||||
public String getNamespace() {
|
||||
return "http://jabber.org/protocol/offline";
|
||||
return QNAME.getNamespaceURI();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue