1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 20:42:06 +01:00

Register Provider

This commit is contained in:
vanitasvitae 2017-05-31 13:33:37 +02:00
parent b99c277736
commit de3c016e3d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -18,6 +18,8 @@ package org.jivesoftware.smackx.jingle_filetransfer;
import org.jivesoftware.smack.Manager;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smackx.jingle.provider.JingleContentProviderManager;
import org.jivesoftware.smackx.jingle_filetransfer.provider.JingleContentDescriptionFileTransferProvider;
import java.util.WeakHashMap;
@ -33,11 +35,14 @@ public final class JingleFileTransferManager extends Manager {
private static final WeakHashMap<XMPPConnection, JingleFileTransferManager> INSTANCES = new WeakHashMap<>();
/**
* Private constructor.
* Private constructor. This registers a JingleContentDescriptionFileTransferProvider with the
* JingleContentProviderManager.
* @param connection connection
*/
private JingleFileTransferManager(XMPPConnection connection) {
super(connection);
JingleContentProviderManager.addJingleContentDescriptionProvider(
NAMESPACE_V5, new JingleContentDescriptionFileTransferProvider());
}
/**