public abstract class JingleSession extends Object implements JingleSessionHandler
Modifier and Type | Field and Description |
---|---|
protected List<JingleContent> |
contents |
protected HashSet<String> |
failedTransportMethods |
protected FullJid |
local |
protected ArrayList<Future<?>> |
queued |
protected FullJid |
remote |
protected Role |
role |
protected String |
sid |
protected JingleTransportSession<?> |
transportSession |
Constructor and Description |
---|
JingleSession(FullJid initiator,
FullJid responder,
Role role,
String sid) |
JingleSession(FullJid initiator,
FullJid responder,
Role role,
String sid,
List<JingleContent> contents) |
protected HashSet<String> failedTransportMethods
protected final List<JingleContent> contents
protected JingleTransportSession<?> transportSession
public JingleSession(FullJid initiator, FullJid responder, Role role, String sid)
public JingleSession(FullJid initiator, FullJid responder, Role role, String sid, List<JingleContent> contents)
public FullJid getInitiator()
public boolean isInitiator()
public FullJid getResponder()
public boolean isResponder()
public String getSessionId()
public FullJidAndSessionId getFullJidAndSessionId()
public List<JingleContent> getContents()
public JingleTransportSession<?> getTransportSession()
protected void setTransportSession(JingleTransportSession<?> transportSession)
public IQ handleJingleSessionRequest(Jingle jingle)
handleJingleSessionRequest
in interface JingleSessionHandler
protected IQ handleSessionInitiate(Jingle sessionInitiate)
protected IQ handleSessionTerminate(Jingle sessionTerminate)
protected IQ handleSessionInfo(Jingle sessionInfo)
protected IQ handleSessionAccept(Jingle sessionAccept)
protected IQ handleContentAdd(Jingle contentAdd)
protected IQ handleContentAccept(Jingle contentAccept)
protected IQ handleContentModify(Jingle contentModify)
protected IQ handleContentReject(Jingle contentReject)
protected IQ handleContentRemove(Jingle contentRemove)
protected IQ handleDescriptionInfo(Jingle descriptionInfo)
protected IQ handleSecurityInfo(Jingle securityInfo)
protected IQ handleTransportAccept(Jingle transportAccept)
protected IQ handleTransportReplace(Jingle transportReplace)
protected IQ handleTransportReject(Jingle transportReject)
public abstract XMPPConnection getConnection()
public abstract void onTransportMethodFailed(String namespace)