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 FullJid
local
protected java.util.ArrayList<java.util.concurrent.Future<?>>
queued
protected FullJid
remote
protected Role
role
protected java.lang.String
sid
protected JingleTransportSession<?>
transportSession
-
Constructor Summary
Constructors Constructor Description JingleSession(FullJid initiator, FullJid responder, Role role, java.lang.String sid)
JingleSession(FullJid initiator, FullJid responder, Role role, java.lang.String sid, java.util.List<JingleContent> contents)
-
Method Summary
-
-
-
Field Detail
-
failedTransportMethods
protected java.util.HashSet<java.lang.String> failedTransportMethods
-
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(FullJid initiator, FullJid responder, Role role, java.lang.String sid)
-
JingleSession
public JingleSession(FullJid initiator, FullJid responder, Role role, java.lang.String sid, java.util.List<JingleContent> contents)
-
-
Method Detail
-
getInitiator
public FullJid getInitiator()
-
isInitiator
public boolean isInitiator()
-
getResponder
public FullJid getResponder()
-
isResponder
public boolean isResponder()
-
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 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(java.lang.String namespace)
-
-