1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Added remove method for private data provider

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3929 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2006-05-26 22:42:07 +00:00 committed by alex
parent 3e1056efe9
commit ed0f4a8a65

View file

@ -102,6 +102,17 @@ public class PrivateDataManager {
privateDataProviders.put(key, provider);
}
/**
* Removes a private data provider with the specified element name and namespace.
*
* @param elementName The XML element name.
* @param namespace The XML namespace.
*/
public static void removePrivateDataProvider(String elementName, String namespace) {
String key = getProviderKey(elementName, namespace);
privateDataProviders.remove(key);
}
private XMPPConnection connection;
@ -312,8 +323,7 @@ public class PrivateDataManager {
}
}
}
IQ result = new PrivateDataResult(privateData);
return result;
return new PrivateDataResult(privateData);
}
}