public final class JingleSession extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JingleSession.State
Represents the state of a Jingle session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Jingle.Content... contents)
Accepts the session.
|
void |
acceptTransport(String contentName,
TransportMethod transportMethod) |
void |
addJingleListener(JingleListener jingleListener)
Adds a Jingle listener, which allows to listen for Jingle events.
|
String |
getSessionId()
Gets the session id.
|
void |
initiate()
Initiates the session.
|
void |
rejectTransport(String contentName,
TransportMethod transportMethod) |
void |
removeJingleListener(JingleListener jingleListener)
Removes a previously added Jingle listener.
|
void |
replaceTransport(String contentName,
TransportMethod transportMethod) |
void |
sendSessionInfo(Object object)
Sends a session info.
|
void |
terminate(Jingle.Reason reason)
Terminates the Jingle session.
|
public String getSessionId()
public void initiate()
throws rocks.xmpp.core.XmppException
rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic void accept(Jingle.Content... contents) throws rocks.xmpp.core.XmppException
contents - The contents.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic void terminate(Jingle.Reason reason) throws rocks.xmpp.core.XmppException
reason - The reason for termination.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic void replaceTransport(String contentName, TransportMethod transportMethod) throws rocks.xmpp.core.XmppException
contentName - The content name.transportMethod - The replaced transport method.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic void acceptTransport(String contentName, TransportMethod transportMethod) throws rocks.xmpp.core.XmppException
rocks.xmpp.core.XmppExceptionpublic void rejectTransport(String contentName, TransportMethod transportMethod) throws rocks.xmpp.core.XmppException
rocks.xmpp.core.XmppExceptionpublic void sendSessionInfo(Object object) throws rocks.xmpp.core.XmppException
object - The session info payload.rocks.xmpp.core.stanza.model.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.rocks.xmpp.core.XmppExceptionpublic final void addJingleListener(JingleListener jingleListener)
jingleListener - The listener.removeJingleListener(JingleListener)public final void removeJingleListener(JingleListener jingleListener)
jingleListener - The listener.addJingleListener(JingleListener)Copyright © 2014 XMPP.rocks. All rights reserved.