Class JingleTransportProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<JingleTransport>
-
- org.jivesoftware.smackx.jingleold.provider.JingleTransportProvider
-
- Direct Known Subclasses:
JingleTransportProvider.Ice
,JingleTransportProvider.RawUdp
public abstract class JingleTransportProvider extends ExtensionElementProvider<JingleTransport>
Provider for a Jingle transport element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleTransportProvider.Ice
RTP-ICE profile.static class
JingleTransportProvider.RawUdp
Raw UDP profile.
-
Constructor Summary
Constructors Constructor Description JingleTransportProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected JingleTransport
getInstance()
Obtain the corresponding TransportNegotiator instance.JingleTransport
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
Parse a iq/jingle/transport element.protected abstract JingleTransport.JingleTransportCandidate
parseCandidate(XmlPullParser parser)
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Constructor Detail
-
JingleTransportProvider
public JingleTransportProvider()
-
-
Method Detail
-
getInstance
protected JingleTransport getInstance()
Obtain the corresponding TransportNegotiator instance.- Returns:
- a new TransportNegotiator instance
-
parse
public JingleTransport parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException
Parse a iq/jingle/transport element.- Specified by:
parse
in classProvider<JingleTransport>
- Parameters:
parser
- the structure to parse- Returns:
- a transport element.
- Throws:
java.io.IOException
- if an I/O error occurred.XmlPullParserException
- if an error in the XML parser occurred.
-
parseCandidate
protected abstract JingleTransport.JingleTransportCandidate parseCandidate(XmlPullParser parser)
-
-