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 |
|---|---|
AsyncResult<Void> |
accept(Jingle.Content... contents)
Accepts the session.
|
AsyncResult<IQ> |
acceptTransport(String contentName,
TransportMethod transportMethod) |
void |
addJingleListener(Consumer<JingleEvent> jingleListener)
Adds a Jingle listener, which allows to listen for Jingle events.
|
List<Jingle.Content> |
getContents() |
String |
getSessionId()
Gets the session id.
|
AsyncResult<Void> |
initiate()
Initiates the session.
|
AsyncResult<IQ> |
rejectTransport(String contentName,
TransportMethod transportMethod) |
void |
removeJingleListener(Consumer<JingleEvent> jingleListener)
Removes a previously added Jingle listener.
|
AsyncResult<IQ> |
replaceTransport(String contentName,
TransportMethod transportMethod) |
AsyncResult<IQ> |
sendSessionInfo(Object object)
Sends a session info.
|
AsyncResult<IQ> |
terminate(Jingle.Reason reason)
Terminates the Jingle session.
|
public String getSessionId()
public AsyncResult<Void> initiate()
public AsyncResult<Void> accept(Jingle.Content... contents)
contents - The contents.public AsyncResult<IQ> terminate(Jingle.Reason reason)
reason - The reason for termination.public AsyncResult<IQ> replaceTransport(String contentName, TransportMethod transportMethod)
contentName - The content name.transportMethod - The replaced transport method.public AsyncResult<IQ> acceptTransport(String contentName, TransportMethod transportMethod)
public AsyncResult<IQ> rejectTransport(String contentName, TransportMethod transportMethod)
public List<Jingle.Content> getContents()
public AsyncResult<IQ> sendSessionInfo(Object object)
object - The session info payload.public final void addJingleListener(Consumer<JingleEvent> jingleListener)
jingleListener - The listener.removeJingleListener(Consumer)public final void removeJingleListener(Consumer<JingleEvent> jingleListener)
jingleListener - The listener.addJingleListener(Consumer)Copyright © 2014–2017 XMPP.rocks. All rights reserved.