mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Merge branch '4.4'
This commit is contained in:
commit
5493a22e44
11 changed files with 70 additions and 30 deletions
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software, 2015-2016 Florian Schmaus.
|
||||
* Copyright 2003-2007 Jive Software, 2015-2021 Florian Schmaus.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -17,6 +17,8 @@
|
|||
|
||||
package org.jivesoftware.smack.packet;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.jxmpp.jid.EntityFullJid;
|
||||
import org.jxmpp.jid.parts.Resourcepart;
|
||||
|
||||
|
@ -73,6 +75,7 @@ public final class Bind extends IQ {
|
|||
|
||||
public static final class Feature implements ExtensionElement {
|
||||
|
||||
public static final QName QNAME = new QName(NAMESPACE, ELEMENT);
|
||||
public static final Feature INSTANCE = new Feature();
|
||||
|
||||
private Feature() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software, 2015-2019 Florian Schmaus
|
||||
* Copyright 2003-2007 Jive Software, 2015-2021 Florian Schmaus
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -22,6 +22,8 @@ import java.util.Locale;
|
|||
import java.util.Map;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.jivesoftware.smack.util.Objects;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smack.util.XmlStringBuilder;
|
||||
|
@ -74,6 +76,8 @@ public class StanzaError extends AbstractError implements ExtensionElement {
|
|||
|
||||
public static final String ERROR = "error";
|
||||
|
||||
public static final QName QNAME = new QName(StreamOpen.CLIENT_NAMESPACE, ERROR);
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(StanzaError.class.getName());
|
||||
static final Map<Condition, Type> CONDITION_TO_TYPE = new HashMap<Condition, Type>();
|
||||
|
||||
|
@ -199,12 +203,12 @@ public class StanzaError extends AbstractError implements ExtensionElement {
|
|||
|
||||
@Override
|
||||
public String getElementName() {
|
||||
return ERROR;
|
||||
return QNAME.getLocalPart();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNamespace() {
|
||||
return StreamOpen.CLIENT_NAMESPACE;
|
||||
return QNAME.getNamespaceURI();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue