Package org.jivesoftware.smackx.jingle
Class JingleSession
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.JingleSession
-
- All Implemented Interfaces:
JingleSessionHandler
public abstract class JingleSession extends java.lang.Object implements JingleSessionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<JingleContent>contentsprotected java.util.HashSet<java.lang.String>failedTransportMethodsprotected org.jxmpp.jid.FullJidlocalprotected java.util.ArrayList<java.util.concurrent.Future<?>>queuedprotected org.jxmpp.jid.FullJidremoteprotected Roleroleprotected java.lang.Stringsidprotected JingleTransportSession<?>transportSession
-
Constructor Summary
Constructors Constructor Description JingleSession(org.jxmpp.jid.FullJid initiator, org.jxmpp.jid.FullJid responder, Role role, java.lang.String sid)JingleSession(org.jxmpp.jid.FullJid initiator, org.jxmpp.jid.FullJid responder, Role role, java.lang.String sid, java.util.List<JingleContent> contents)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)abstract org.jivesoftware.smack.XMPPConnectiongetConnection()java.util.List<JingleContent>getContents()FullJidAndSessionIdgetFullJidAndSessionId()org.jxmpp.jid.FullJidgetInitiator()org.jxmpp.jid.FullJidgetLocal()org.jxmpp.jid.FullJidgetRemote()org.jxmpp.jid.FullJidgetResponder()java.lang.StringgetSessionId()JingleTransportSession<?>getTransportSession()protected org.jivesoftware.smack.packet.IQhandleContentAccept(Jingle contentAccept)protected org.jivesoftware.smack.packet.IQhandleContentAdd(Jingle contentAdd)protected org.jivesoftware.smack.packet.IQhandleContentModify(Jingle contentModify)protected org.jivesoftware.smack.packet.IQhandleContentReject(Jingle contentReject)protected org.jivesoftware.smack.packet.IQhandleContentRemove(Jingle contentRemove)protected org.jivesoftware.smack.packet.IQhandleDescriptionInfo(Jingle descriptionInfo)org.jivesoftware.smack.packet.IQhandleJingleSessionRequest(Jingle jingle)protected org.jivesoftware.smack.packet.IQhandleSecurityInfo(Jingle securityInfo)protected org.jivesoftware.smack.packet.IQhandleSessionAccept(Jingle sessionAccept)protected org.jivesoftware.smack.packet.IQhandleSessionInfo(Jingle sessionInfo)protected org.jivesoftware.smack.packet.IQhandleSessionInitiate(Jingle sessionInitiate)protected org.jivesoftware.smack.packet.IQhandleSessionTerminate(Jingle sessionTerminate)protected org.jivesoftware.smack.packet.IQhandleTransportAccept(Jingle transportAccept)protected org.jivesoftware.smack.packet.IQhandleTransportReject(Jingle transportReject)protected org.jivesoftware.smack.packet.IQhandleTransportReplace(Jingle transportReplace)inthashCode()booleanisInitiator()booleanisResponder()abstract voidonTransportMethodFailed(java.lang.String namespace)protected voidsetTransportSession(JingleTransportSession<?> transportSession)
-
-
-
Field Detail
-
failedTransportMethods
protected java.util.HashSet<java.lang.String> failedTransportMethods
-
local
protected final org.jxmpp.jid.FullJid local
-
remote
protected final org.jxmpp.jid.FullJid remote
-
role
protected final Role role
-
sid
protected final java.lang.String sid
-
contents
protected final java.util.List<JingleContent> contents
-
queued
protected java.util.ArrayList<java.util.concurrent.Future<?>> queued
-
transportSession
protected JingleTransportSession<?> transportSession
-
-
Constructor Detail
-
JingleSession
public JingleSession(org.jxmpp.jid.FullJid initiator, org.jxmpp.jid.FullJid responder, Role role, java.lang.String sid)
-
JingleSession
public JingleSession(org.jxmpp.jid.FullJid initiator, org.jxmpp.jid.FullJid responder, Role role, java.lang.String sid, java.util.List<JingleContent> contents)
-
-
Method Detail
-
getInitiator
public org.jxmpp.jid.FullJid getInitiator()
-
isInitiator
public boolean isInitiator()
-
getResponder
public org.jxmpp.jid.FullJid getResponder()
-
isResponder
public boolean isResponder()
-
getRemote
public org.jxmpp.jid.FullJid getRemote()
-
getLocal
public org.jxmpp.jid.FullJid getLocal()
-
getSessionId
public java.lang.String getSessionId()
-
getFullJidAndSessionId
public FullJidAndSessionId getFullJidAndSessionId()
-
getContents
public java.util.List<JingleContent> getContents()
-
getTransportSession
public JingleTransportSession<?> getTransportSession()
-
setTransportSession
protected void setTransportSession(JingleTransportSession<?> transportSession)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
handleJingleSessionRequest
public org.jivesoftware.smack.packet.IQ handleJingleSessionRequest(Jingle jingle)
- Specified by:
handleJingleSessionRequestin interfaceJingleSessionHandler
-
handleSessionInitiate
protected org.jivesoftware.smack.packet.IQ handleSessionInitiate(Jingle sessionInitiate)
-
handleSessionTerminate
protected org.jivesoftware.smack.packet.IQ handleSessionTerminate(Jingle sessionTerminate)
-
handleSessionInfo
protected org.jivesoftware.smack.packet.IQ handleSessionInfo(Jingle sessionInfo)
-
handleSessionAccept
protected org.jivesoftware.smack.packet.IQ handleSessionAccept(Jingle sessionAccept)
-
handleContentAdd
protected org.jivesoftware.smack.packet.IQ handleContentAdd(Jingle contentAdd)
-
handleContentAccept
protected org.jivesoftware.smack.packet.IQ handleContentAccept(Jingle contentAccept)
-
handleContentModify
protected org.jivesoftware.smack.packet.IQ handleContentModify(Jingle contentModify)
-
handleContentReject
protected org.jivesoftware.smack.packet.IQ handleContentReject(Jingle contentReject)
-
handleContentRemove
protected org.jivesoftware.smack.packet.IQ handleContentRemove(Jingle contentRemove)
-
handleDescriptionInfo
protected org.jivesoftware.smack.packet.IQ handleDescriptionInfo(Jingle descriptionInfo)
-
handleSecurityInfo
protected org.jivesoftware.smack.packet.IQ handleSecurityInfo(Jingle securityInfo)
-
handleTransportAccept
protected org.jivesoftware.smack.packet.IQ handleTransportAccept(Jingle transportAccept)
-
handleTransportReplace
protected org.jivesoftware.smack.packet.IQ handleTransportReplace(Jingle transportReplace)
-
handleTransportReject
protected org.jivesoftware.smack.packet.IQ handleTransportReject(Jingle transportReject)
-
getConnection
public abstract org.jivesoftware.smack.XMPPConnection getConnection()
-
onTransportMethodFailed
public abstract void onTransportMethodFailed(java.lang.String namespace)
-
-