Class PacketUtil

java.lang.Object
org.jivesoftware.smack.util.PacketUtil

public class PacketUtil extends Object
  • Constructor Details

  • Method Details

    • extensionElementFrom

      public static <PE extends XmlElement> PE extensionElementFrom(Collection<XmlElement> collection, String element, String namespace)
      Get a extension element from a collection.
      Type Parameters:
      PE - Type of the ExtensionElement
      Parameters:
      collection - Collection of ExtensionElements.
      element - name of the targeted ExtensionElement.
      namespace - namespace of the targeted ExtensionElement.
      Returns:
      the extension element