public static ExtensionElementProvider<ExtensionElement> getStreamFeatureProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return streamFeatureProviders.get(key); }
public static void removeStreamFeatureProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); streamFeatureProviders.remove(key); }
/** * Removes an extension provider with the specified element name and namespace. This * method is typically called to cleanup providers that are programmatically added * using the {@link #addExtensionProvider(String, String, Object) addExtensionProvider} method. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the key of the removed stanza extension provider */ public static String removeExtensionProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); extensionProviders.remove(key); return key; }
/** * Removes an IQ provider with the specified element name and namespace. This * method is typically called to cleanup providers that are programmatically added * using the {@link #addIQProvider(String, String, Object) addIQProvider} method. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the key of the removed IQ Provider */ public static String removeIQProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); iqProviders.remove(key); return key; }
/** * Returns the IQ provider registered to the specified XML element name and namespace. * For example, if a provider was registered to the element name "query" and the * namespace "jabber:iq:time", then the following stanza would trigger the provider: * * <pre> * <iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'> * <query xmlns='jabber:iq:time'> * <utc>20020910T17:58:35</utc> * <tz>MDT</tz> * <display>Tue Sep 10 12:58:35 2002</display> * </query> * </iq></pre> * * <p>Note: this method is generally only called by the internal Smack classes. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the IQ provider. */ public static IQProvider<IQ> getIQProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return iqProviders.get(key); }
/** * Returns the stanza extension provider registered to the specified XML element name * and namespace. For example, if a provider was registered to the element name "x" and the * namespace "jabber:x:event", then the following stanza would trigger the provider: * * <pre> * <message to='romeo@montague.net' id='message_1'> * <body>Art thou not Romeo, and a Montague?</body> * <x xmlns='jabber:x:event'> * <composing/> * </x> * </message></pre> * * <p>Note: this method is generally only called by the internal Smack classes. * * @param elementName element name associated with extension provider. * @param namespace namespace associated with extension provider. * @return the extension provider. */ public static ExtensionElementProvider<ExtensionElement> getExtensionProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return extensionProviders.get(key); }
public static void addStreamFeatureProvider(String elementName, String namespace, ExtensionElementProvider<ExtensionElement> provider) { validate(elementName, namespace); String key = getKey(elementName, namespace); streamFeatureProviders.put(key, provider); }
public static ExtensionElementProvider<ExtensionElement> getStreamFeatureProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return streamFeatureProviders.get(key); }
/** * Removes an extension provider with the specified element name and namespace. This * method is typically called to cleanup providers that are programmatically added * using the {@link #addExtensionProvider(String, String, Object) addExtensionProvider} method. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the key of the removed stanza extension provider */ public static String removeExtensionProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); extensionProviders.remove(key); return key; }
public static void removeStreamFeatureProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); streamFeatureProviders.remove(key); }
/** * Removes an IQ provider with the specified element name and namespace. This * method is typically called to cleanup providers that are programmatically added * using the {@link #addIQProvider(String, String, Object) addIQProvider} method. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the key of the removed IQ Provider */ public static String removeIQProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); iqProviders.remove(key); return key; }
/** * Returns the stanza extension provider registered to the specified XML element name * and namespace. For example, if a provider was registered to the element name "x" and the * namespace "jabber:x:event", then the following stanza would trigger the provider: * * <pre> * <message to='romeo@montague.net' id='message_1'> * <body>Art thou not Romeo, and a Montague?</body> * <x xmlns='jabber:x:event'> * <composing/> * </x> * </message></pre> * * <p>Note: this method is generally only called by the internal Smack classes. * * @param elementName element name associated with extension provider. * @param namespace namespace associated with extension provider. * @return the extension provider. */ public static ExtensionElementProvider<ExtensionElement> getExtensionProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return extensionProviders.get(key); }
/** * Returns the IQ provider registered to the specified XML element name and namespace. * For example, if a provider was registered to the element name "query" and the * namespace "jabber:iq:time", then the following stanza would trigger the provider: * * <pre> * <iq type='result' to='joe@example.com' from='mary@example.com' id='time_1'> * <query xmlns='jabber:iq:time'> * <utc>20020910T17:58:35</utc> * <tz>MDT</tz> * <display>Tue Sep 10 12:58:35 2002</display> * </query> * </iq></pre> * * <p>Note: this method is generally only called by the internal Smack classes. * * @param elementName the XML element name. * @param namespace the XML namespace. * @return the IQ provider. */ public static IQProvider<IQ> getIQProvider(String elementName, String namespace) { String key = getKey(elementName, namespace); return iqProviders.get(key); }
public static void addStreamFeatureProvider(String elementName, String namespace, ExtensionElementProvider<ExtensionElement> provider) { validate(elementName, namespace); String key = getKey(elementName, namespace); streamFeatureProviders.put(key, provider); }