|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.JingleNegotiator
public abstract class JingleNegotiator
Basic Jingle negotiator.
JingleNegotiator implements some basic behavior for every Jingle negotiation. It implements a "state" pattern: each stage should process Jingle packets and act depending on the current state in the negotiation...
| Constructor Summary | |
|---|---|
JingleNegotiator()
Default constructor. |
|
JingleNegotiator(JingleSession session)
Default constructor with a XMPPConnection |
|
| Method Summary | |
|---|---|
void |
addExpectedId(java.lang.String id)
Add expected ID |
void |
addListener(JingleListener li)
Add a Jingle session listener to listen to incoming session requests. |
void |
close()
Close the negotiation. |
abstract java.util.List<IQ> |
dispatchIncomingPacket(IQ iq,
java.lang.String id)
Dispatch an incoming packet. |
XMPPConnection |
getConnection()
|
JingleNegotiatorState |
getNegotiatorState()
|
JingleSession |
getSession()
Get the XMPP connection associated with this negotiation. |
boolean |
isExpectedId(java.lang.String id)
Check if the passed ID is the expected ID |
boolean |
isStarted()
|
void |
removeExpectedId(java.lang.String id)
Remove and expected ID |
void |
removeListener(JingleListener li)
Removes a Jingle session listener. |
void |
setNegotiatorState(JingleNegotiatorState stateIs)
|
void |
setSession(JingleSession session)
Set the XMPP connection associated. |
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JingleNegotiator()
public JingleNegotiator(JingleSession session)
connection - the connection associated| Method Detail |
|---|
public JingleNegotiatorState getNegotiatorState()
public void setNegotiatorState(JingleNegotiatorState stateIs)
public XMPPConnection getConnection()
public JingleSession getSession()
public void setSession(JingleSession session)
connection - the connection to setpublic void addExpectedId(java.lang.String id)
id - public boolean isExpectedId(java.lang.String id)
id -
public void removeExpectedId(java.lang.String id)
id - public void addListener(JingleListener li)
li - The listenerorg.jivesoftware.smackx.jingle.listeners.JingleListenerpublic void removeListener(JingleListener li)
li - The jingle session listener to be removedorg.jivesoftware.smackx.jingle.listeners.JingleListener
public abstract java.util.List<IQ> dispatchIncomingPacket(IQ iq,
java.lang.String id)
throws XMPPException
iq - the packet receivedid - the ID of the response that will be sent
XMPPExceptionpublic void start()
public boolean isStarted()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||