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>
contents
protected java.util.HashSet<java.lang.String>
failedTransportMethods
protected org.jxmpp.jid.FullJid
local
protected java.util.ArrayList<java.util.concurrent.Future<?>>
queued
protected org.jxmpp.jid.FullJid
remote
protected Role
role
protected java.lang.String
sid
protected 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 boolean
equals(java.lang.Object other)
abstract org.jivesoftware.smack.XMPPConnection
getConnection()
java.util.List<JingleContent>
getContents()
FullJidAndSessionId
getFullJidAndSessionId()
org.jxmpp.jid.FullJid
getInitiator()
org.jxmpp.jid.FullJid
getLocal()
org.jxmpp.jid.FullJid
getRemote()
org.jxmpp.jid.FullJid
getResponder()
java.lang.String
getSessionId()
JingleTransportSession<?>
getTransportSession()
protected org.jivesoftware.smack.packet.IQ
handleContentAccept(Jingle contentAccept)
protected org.jivesoftware.smack.packet.IQ
handleContentAdd(Jingle contentAdd)
protected org.jivesoftware.smack.packet.IQ
handleContentModify(Jingle contentModify)
protected org.jivesoftware.smack.packet.IQ
handleContentReject(Jingle contentReject)
protected org.jivesoftware.smack.packet.IQ
handleContentRemove(Jingle contentRemove)
protected org.jivesoftware.smack.packet.IQ
handleDescriptionInfo(Jingle descriptionInfo)
org.jivesoftware.smack.packet.IQ
handleJingleSessionRequest(Jingle jingle)
protected org.jivesoftware.smack.packet.IQ
handleSecurityInfo(Jingle securityInfo)
protected org.jivesoftware.smack.packet.IQ
handleSessionAccept(Jingle sessionAccept)
protected org.jivesoftware.smack.packet.IQ
handleSessionInfo(Jingle sessionInfo)
protected org.jivesoftware.smack.packet.IQ
handleSessionInitiate(Jingle sessionInitiate)
protected org.jivesoftware.smack.packet.IQ
handleSessionTerminate(Jingle sessionTerminate)
protected org.jivesoftware.smack.packet.IQ
handleTransportAccept(Jingle transportAccept)
protected org.jivesoftware.smack.packet.IQ
handleTransportReject(Jingle transportReject)
protected org.jivesoftware.smack.packet.IQ
handleTransportReplace(Jingle transportReplace)
int
hashCode()
boolean
isInitiator()
boolean
isResponder()
abstract void
onTransportMethodFailed(java.lang.String namespace)
protected void
setTransportSession(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
handleJingleSessionRequest
public org.jivesoftware.smack.packet.IQ handleJingleSessionRequest(Jingle jingle)
- Specified by:
handleJingleSessionRequest
in 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)
-
-