Package rocks.xmpp.extensions.jingle
Class JingleManager
- java.lang.Object
-
- rocks.xmpp.core.session.Manager
-
- rocks.xmpp.extensions.jingle.JingleManager
-
public final class JingleManager extends Manager
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addJingleListener(Consumer<JingleEvent> jingleListener)
Adds a Jingle listener, which allows to listen for Jingle events.JingleSession
createSession(Jid responder, String sessionId, Jingle.Content... contents)
void
registerApplicationFormat(Class<? extends ApplicationFormat> applicationFormat, Consumer<JingleSession> consumer)
void
removeJingleListener(Consumer<JingleEvent> jingleListener)
Removes a previously added Jingle listener.void
unregisterApplicationFormat(Class<? extends ApplicationFormat> applicationFormat)
-
Methods inherited from class rocks.xmpp.core.session.Manager
isEnabled, setEnabled
-
-
-
-
Method Detail
-
createSession
public JingleSession createSession(Jid responder, String sessionId, Jingle.Content... contents)
-
addJingleListener
public final void addJingleListener(Consumer<JingleEvent> jingleListener)
Adds a Jingle listener, which allows to listen for Jingle events.- Parameters:
jingleListener
- The listener.- See Also:
removeJingleListener(Consumer)
-
removeJingleListener
public final void removeJingleListener(Consumer<JingleEvent> jingleListener)
Removes a previously added Jingle listener.- Parameters:
jingleListener
- The listener.- See Also:
addJingleListener(Consumer)
-
registerApplicationFormat
public final void registerApplicationFormat(Class<? extends ApplicationFormat> applicationFormat, Consumer<JingleSession> consumer)
-
unregisterApplicationFormat
public final void unregisterApplicationFormat(Class<? extends ApplicationFormat> applicationFormat)
-
-