mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Introduce SmackConfiguration.SMACK_URL(_STRING)
This commit is contained in:
parent
f3b856c80b
commit
df5899e72b
4 changed files with 21 additions and 3 deletions
|
@ -36,6 +36,7 @@ import java.util.logging.Logger;
|
|||
import org.jivesoftware.smack.AbstractConnectionListener;
|
||||
import org.jivesoftware.smack.ConnectionCreationListener;
|
||||
import org.jivesoftware.smack.Manager;
|
||||
import org.jivesoftware.smack.SmackConfiguration;
|
||||
import org.jivesoftware.smack.SmackException.NoResponseException;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
|
@ -92,7 +93,7 @@ public final class EntityCapsManager extends Manager {
|
|||
*/
|
||||
private static final String DEFAULT_HASH = StringUtils.SHA1;
|
||||
|
||||
private static String DEFAULT_ENTITY_NODE = "http://www.igniterealtime.org/projects/smack";
|
||||
private static String DEFAULT_ENTITY_NODE = SmackConfiguration.SMACK_URL_STRING;
|
||||
|
||||
protected static EntityCapsPersistentCache persistentCache;
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ import java.util.WeakHashMap;
|
|||
import javax.xml.namespace.QName;
|
||||
|
||||
import org.jivesoftware.smack.Manager;
|
||||
import org.jivesoftware.smack.SmackConfiguration;
|
||||
import org.jivesoftware.smack.SmackException.NoResponseException;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
|
@ -193,7 +194,7 @@ public final class PrivateDataManager extends Manager {
|
|||
|
||||
@Override
|
||||
public String getNamespace() {
|
||||
return "https://igniterealtime.org/projects/smack/";
|
||||
return SmackConfiguration.SMACK_URL_STRING;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue