Class AbstractHttpOverXmppProvider<H extends AbstractHttpOverXmpp>
java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<I>
org.jivesoftware.smack.provider.IqProvider<H>
org.jivesoftware.smackx.hoxt.provider.AbstractHttpOverXmppProvider<H>
- Direct Known Subclasses:
HttpOverXmppReqProvider
,HttpOverXmppRespProvider
public abstract class AbstractHttpOverXmppProvider<H extends AbstractHttpOverXmpp>
extends IqProvider<H>
Abstract parent for Req and Resp stanza providers.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractHttpOverXmpp.Data
parseData
(XmlPullParser parser) Parses Data element if any.protected HeadersExtension
parseHeaders
(XmlPullParser parser) Parses HeadersExtension element if any.Methods inherited from class org.jivesoftware.smack.provider.IqProvider
parse, parse, parse
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, toUrl, wrapExceptions
-
Constructor Details
-
AbstractHttpOverXmppProvider
public AbstractHttpOverXmppProvider()
-
-
Method Details
-
parseHeaders
protected HeadersExtension parseHeaders(XmlPullParser parser) throws IOException, XmlPullParserException, SmackParsingException Parses HeadersExtension element if any.- Parameters:
parser
- parser- Returns:
- HeadersExtension or null if no headers
- Throws:
XmlPullParserException
- if an error in the XML parser occurred.IOException
- if an I/O error occurred.SmackParsingException
- if the Smack parser (provider) encountered invalid input.
-
parseData
protected AbstractHttpOverXmpp.Data parseData(XmlPullParser parser) throws XmlPullParserException, IOException Parses Data element if any.- Parameters:
parser
- parser- Returns:
- Data or null if no data
- Throws:
XmlPullParserException
- if an error in the XML parser occurred.IOException
- if an I/O error occurred.
-