com.xmlns.foaftown
Class SPARQLResultsProvider
java.lang.Object
com.xmlns.foaftown.SPARQLResultsProvider
- All Implemented Interfaces:
- org.jivesoftware.smack.provider.IQProvider
public class SPARQLResultsProvider
- extends java.lang.Object
- implements org.jivesoftware.smack.provider.IQProvider
This class concerns itself with parsing SPARQL Results in IQ data.
The parseIQ method populates an IQ based on markup from the XMPP stream.
IQ spec:
http://www.xmpp.org/specs/rfc3920.html#stanzas-semantics-iq
TODO: BUG!! problem: we fell back to so we're using the wrong provider
We're using (.xml.* package is from there) this approach:
http://ex-337.net/gradient/docs/design/iq-providers.html
http://ex-337.net/gradient-javadoc/net/ex_337/gradient/packet/DOMIQProvider.html
http://ex-337.net/downloads/gradient-src.1.0.0.zip
Todo: capture incoming xml resultset markup as a DOM
|
Method Summary |
org.jivesoftware.smack.packet.IQ |
parseIQ(org.xmlpull.v1.XmlPullParser xpp)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPARQLResultsProvider
public SPARQLResultsProvider()
parseIQ
public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser xpp)
- Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider
Some rights reserved.