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 XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void accept(Jingle.Content... contents) throws XmppException
contents - The contents.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void terminate(Jingle.Reason reason) throws XmppException
reason - The reason for termination.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void replaceTransport(String contentName, TransportMethod transportMethod) throws XmppException
contentName - The content name.transportMethod - The replaced transport method.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void acceptTransport(String contentName, TransportMethod transportMethod) throws XmppException
XmppExceptionpublic void rejectTransport(String contentName, TransportMethod transportMethod) throws XmppException
XmppExceptionpublic void sendSessionInfo(Object object) throws XmppException
object - The session info payload.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic final void addJingleListener(JingleListener jingleListener)
jingleListener - The listener.removeJingleListener(JingleListener)public final void removeJingleListener(JingleListener jingleListener)
jingleListener - The listener.addJingleListener(JingleListener)Copyright © 2014–2015 XMPP.rocks. All rights reserved.