Class JivePropertiesExtensionProvider

java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<JivePropertiesExtension>
org.jivesoftware.smackx.jiveproperties.provider.JivePropertiesExtensionProvider

public class JivePropertiesExtensionProvider extends org.jivesoftware.smack.provider.ExtensionElementProvider<JivePropertiesExtension>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider

    org.jivesoftware.smack.provider.AbstractProvider.NumberFormatParseException, org.jivesoftware.smack.provider.AbstractProvider.TextParseException, org.jivesoftware.smack.provider.AbstractProvider.WrappableParser<E extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment, org.jxmpp.JxmppContext jxmppContext)
    Parse a properties sub-packet.

    Methods inherited from class org.jivesoftware.smack.provider.Provider

    parse, parse

    Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider

    getElementClass, toUrl, wrapExceptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JivePropertiesExtensionProvider

      public JivePropertiesExtensionProvider()
  • Method Details

    • parse

      public JivePropertiesExtension parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment, org.jxmpp.JxmppContext jxmppContext) throws org.jivesoftware.smack.xml.XmlPullParserException, IOException
      Parse a properties sub-packet. If any errors occur while de-serializing Java object properties, an exception will be printed and not thrown since a thrown exception will shut down the entire connection. ClassCastExceptions will occur when both the sender and receiver of the stanza don't have identical versions of the same class.

      Note that you have to explicitly enabled Java object deserialization with JivePropertiesManager.setJavaObjectEnabled(boolean)

      Specified by:
      parse in class org.jivesoftware.smack.provider.Provider<JivePropertiesExtension>
      Parameters:
      parser - the XML parser, positioned at the start of a properties sub-packet.
      Returns:
      a map of the properties.
      Throws:
      IOException - if an I/O error occurred.
      org.jivesoftware.smack.xml.XmlPullParserException - if an error in the XML parser occurred.