Class AbstractHttpOverXmppProvider<H extends AbstractHttpOverXmpp>
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<I>
-
- org.jivesoftware.smack.provider.IqProvider<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:
- XEP-0332: HTTP over XMPP transport
-
-
Constructor Summary
Constructors Constructor Description AbstractHttpOverXmppProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, parse
-
Methods inherited from class org.jivesoftware.smack.provider.IqProvider
parse, parse
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Constructor Detail
-
AbstractHttpOverXmppProvider
public AbstractHttpOverXmppProvider()
-
-
Method Detail
-
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.
-
-