From de3c016e3dde908ff879e833a647755383223941 Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Wed, 31 May 2017 13:33:37 +0200 Subject: [PATCH] Register Provider --- .../jingle_filetransfer/JingleFileTransferManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferManager.java index d0e3ed57e..72eadfef7 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferManager.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/jingle_filetransfer/JingleFileTransferManager.java @@ -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 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()); } /**