public class RedirectProvider
extends java.lang.Object
implements org.jivesoftware.smack.provider.PacketExtensionProvider
RedirectPacketExtension
instances.Constructor and Description |
---|
RedirectProvider() |
Modifier and Type | Method and Description |
---|---|
RedirectPacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parses a reason extension sub-packet and creates a
RedirectPacketExtension instance. |
java.lang.String |
parseText(org.xmlpull.v1.XmlPullParser parser)
Returns the content of the next
XmlPullParser.TEXT element that
we encounter in parser. |
public RedirectPacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
RedirectPacketExtension
instance. At the beginning of the method call,
the xml parser will be positioned on the opening element of the packet
extension. As required by the smack API, at the end of the method call,
the parser will be positioned on the closing element of the packet
extension.parseExtension
in interface org.jivesoftware.smack.provider.PacketExtensionProvider
parser
- an XML parser positioned at the opening redirect
element.RedirectPacketExtension
instance.java.lang.Exception
- if an error occurs parsing the XML.public java.lang.String parseText(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
XmlPullParser.TEXT
element that
we encounter in parser.parser
- the parse that we'll be probing for text.XmlPullParser.TEXT
element we
come across or null if we encounter a closing tag first.java.lang.Exception
- if an error occurs parsing the XML.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.