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:
- XEP-0332: HTTP over XMPP transport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
-
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
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, wrapExceptions
-
-
-
-
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.
-
-