Package org.jivesoftware.smackx.jingle
Class JingleSession
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.JingleSession
-
- All Implemented Interfaces:
JingleSessionHandler
public abstract class JingleSession extends Object implements JingleSessionHandler
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description JingleSession(FullJid initiator, FullJid responder, Role role, String sid)
JingleSession(FullJid initiator, FullJid responder, Role role, String sid, List<JingleContent> contents)
-
Method Summary
-
-
-
Field Detail
-
failedTransportMethods
protected HashSet<String> failedTransportMethods
-
contents
protected final List<JingleContent> contents
-
transportSession
protected JingleTransportSession<?> transportSession
-
-
Constructor Detail
-
JingleSession
public JingleSession(FullJid initiator, FullJid responder, Role role, String sid)
-
JingleSession
public JingleSession(FullJid initiator, FullJid responder, Role role, String sid, List<JingleContent> contents)
-
-
Method Detail
-
getInitiator
public FullJid getInitiator()
-
isInitiator
public boolean isInitiator()
-
getResponder
public FullJid getResponder()
-
isResponder
public boolean isResponder()
-
getSessionId
public String getSessionId()
-
getFullJidAndSessionId
public FullJidAndSessionId getFullJidAndSessionId()
-
getContents
public List<JingleContent> getContents()
-
getTransportSession
public JingleTransportSession<?> getTransportSession()
-
setTransportSession
protected void setTransportSession(JingleTransportSession<?> transportSession)
-
handleJingleSessionRequest
public IQ handleJingleSessionRequest(Jingle jingle)
- Specified by:
handleJingleSessionRequest
in interfaceJingleSessionHandler
-
handleSessionInitiate
protected IQ handleSessionInitiate(Jingle sessionInitiate)
-
handleSessionTerminate
protected IQ handleSessionTerminate(Jingle sessionTerminate)
-
handleSessionInfo
protected IQ handleSessionInfo(Jingle sessionInfo)
-
handleSessionAccept
protected IQ handleSessionAccept(Jingle sessionAccept)
-
handleContentAdd
protected IQ handleContentAdd(Jingle contentAdd)
-
handleContentAccept
protected IQ handleContentAccept(Jingle contentAccept)
-
handleContentModify
protected IQ handleContentModify(Jingle contentModify)
-
handleContentReject
protected IQ handleContentReject(Jingle contentReject)
-
handleContentRemove
protected IQ handleContentRemove(Jingle contentRemove)
-
handleDescriptionInfo
protected IQ handleDescriptionInfo(Jingle descriptionInfo)
-
handleSecurityInfo
protected IQ handleSecurityInfo(Jingle securityInfo)
-
handleTransportAccept
protected IQ handleTransportAccept(Jingle transportAccept)
-
handleTransportReplace
protected IQ handleTransportReplace(Jingle transportReplace)
-
handleTransportReject
protected IQ handleTransportReject(Jingle transportReject)
-
getConnection
public abstract XMPPConnection getConnection()
-
onTransportMethodFailed
public abstract void onTransportMethodFailed(String namespace)
-
-