public class ContentNegotiator extends JingleNegotiator
Modifier and Type | Field and Description |
---|---|
static String |
INITIATOR |
static String |
RESPONDER |
session
Constructor and Description |
---|
ContentNegotiator(JingleSession session,
String inCreator,
String inName) |
Modifier and Type | Method and Description |
---|---|
void |
addTransportNegotiator(TransportNegotiator transportNegotiator) |
void |
close()
Prepare to close the media manager.
|
protected void |
destroyMediaNegotiator()
Destroy the jmf negotiator.
|
protected void |
destroyTransportNegotiator()
Destroy the transport negotiator.
|
List<IQ> |
dispatchIncomingPacket(IQ iq,
String id)
Dispatch an incoming packet.
|
protected void |
doStart()
Called from above when starting a new session.
|
String |
getCreator() |
JingleContent |
getJingleContent() |
JingleMediaSession |
getJingleMediaSession()
Get the JingleMediaSession of this Jingle Session
|
MediaNegotiator |
getMediaNegotiator()
Obtain the description negotiator for this session
|
String |
getName() |
JingleNegotiatorState |
getNegotiatorState()
The negotiator state for the ContentNegotiators is a special case.
|
JingleTransportManager |
getTransportManager() |
TransportNegotiator |
getTransportNegotiator()
Obtain the transport negotiator for this session.
|
boolean |
isFullyEstablished()
Return true if the transport and content negotiators have finished
|
void |
setJingleTransportManager(JingleTransportManager jingleTransportManager) |
protected void |
setMediaNegotiator(MediaNegotiator mediaNeg)
Set the jmf negotiator.
|
protected void |
setTransportNegotiator(TransportNegotiator transNeg)
Set TransportNegociator
|
void |
stopJingleMediaSession()
Stop a Jingle media session.
|
void |
triggerContentEstablished() |
addExpectedId, addListener, getConnection, getListenersList, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start
public static final String INITIATOR
public static final String RESPONDER
public ContentNegotiator(JingleSession session, String inCreator, String inName)
public List<IQ> dispatchIncomingPacket(IQ iq, String id) throws XMPPException, SmackException
JingleNegotiator
dispatchIncomingPacket
in class JingleNegotiator
iq
- the stanza(/packet) receivedid
- the ID of the response that will be sentXMPPException
SmackException
public String getCreator()
public JingleMediaSession getJingleMediaSession()
public void addTransportNegotiator(TransportNegotiator transportNegotiator)
public void setJingleTransportManager(JingleTransportManager jingleTransportManager)
jingleTransportManager
- public JingleTransportManager getTransportManager()
protected void doStart()
doStart
in class JingleNegotiator
public void close()
close
in class JingleNegotiator
public MediaNegotiator getMediaNegotiator()
protected void setMediaNegotiator(MediaNegotiator mediaNeg)
mediaNeg
- the description negotiator to setprotected void destroyMediaNegotiator()
public TransportNegotiator getTransportNegotiator()
protected void setTransportNegotiator(TransportNegotiator transNeg)
transNeg
- the transNeg to setprotected void destroyTransportNegotiator()
public boolean isFullyEstablished()
public JingleContent getJingleContent()
public void triggerContentEstablished() throws SmackException.NotConnectedException
public void stopJingleMediaSession()
public JingleNegotiatorState getNegotiatorState()
getNegotiatorState
in class JingleNegotiator