Class ForwardedProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<Forwarded<?>>
-
- org.jivesoftware.smackx.forward.provider.ForwardedProvider
-
public class ForwardedProvider extends ExtensionElementProvider<Forwarded<?>>
This class implements theExtensionElementProvider
to parse forwarded messages from a packet. It will return aForwarded
stanza extension.
-
-
Field Summary
Fields Modifier and Type Field Description static ForwardedProvider
INSTANCE
-
Constructor Summary
Constructors Constructor Description ForwardedProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Forwarded<?>
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
static Forwarded<Message>
parseForwardedMessage(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
static Forwarded<Message>
parseForwardedMessage(XmlPullParser parser, XmlEnvironment xmlEnvironment)
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Field Detail
-
INSTANCE
public static final ForwardedProvider INSTANCE
-
-
Constructor Detail
-
ForwardedProvider
public ForwardedProvider()
-
-
Method Detail
-
parse
public Forwarded<?> parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException, SmackParsingException
- Specified by:
parse
in classProvider<Forwarded<?>>
- Throws:
XmlPullParserException
java.io.IOException
SmackParsingException
-
parseForwardedMessage
public static Forwarded<Message> parseForwardedMessage(XmlPullParser parser, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException, SmackParsingException
- Throws:
XmlPullParserException
java.io.IOException
SmackParsingException
-
parseForwardedMessage
public static Forwarded<Message> parseForwardedMessage(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException, SmackParsingException
- Throws:
XmlPullParserException
java.io.IOException
SmackParsingException
-
-