|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.gtalk.GTalkPacketFactory
public class GTalkPacketFactory
A utility class containing methods for creating SessionIQ
instances for various situations.
| Constructor Summary | |
|---|---|
GTalkPacketFactory()
|
|
| Method Summary | |
|---|---|
static SessionIQ |
createBusy(String from,
String to,
String sid)
Creates a SessionIQ terminate packet carrying a
Reason.BUSY payload. |
static SessionIQ |
createBye(String from,
String to,
String sid)
Creates a SessionIQ session-terminate packet that is
meant to terminate an on-going, well established session (similar to a SIP
BYE request). |
static SessionIQ |
createCancel(String from,
String to,
String sid)
Creates a SessionIQ terminate packet that is
meant to terminate a not yet established session. |
static GTalkCandidatePacketExtension |
createCandidate(org.ice4j.ice.Candidate candidate,
String name)
Creates a GTalkCandidatePacketExtension and initializes it so
that it would describe the state of candidate |
static List<GTalkCandidatePacketExtension> |
createCandidates(String name,
org.ice4j.ice.IceMediaStream stream)
Converts the ICE media stream and its local candidates into a list of Google Talk candidates. |
static SessionIQ |
createReject(String from,
String to,
String sid)
Creates a SessionIQ reject packet. |
static SessionIQ |
createSessionAccept(String from,
String to,
String sid,
RtpDescriptionPacketExtension description)
Creates a SessionIQ accept packet with the
specified from, to, sid, and content. |
static SessionIQ |
createSessionCandidates(String from,
String to,
String sid,
GTalkCandidatePacketExtension candidate)
Creates a new SessionIQ with the candidates type. |
static SessionIQ |
createSessionInitiate(String from,
String to,
String sid,
RtpDescriptionPacketExtension description)
Creates a new SessionIQ with the initiate type. |
static SessionIQ |
createSessionTerminate(String from,
String to,
String sid,
Reason reason,
String reasonText)
Creates a SessionIQ terminate packet with the
specified src, dst, sid, and reason. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GTalkPacketFactory()
| Method Detail |
|---|
public static SessionIQ createReject(String from,
String to,
String sid)
SessionIQ reject packet.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
rejecting.
SessionIQ reject packet.
public static SessionIQ createBusy(String from,
String to,
String sid)
SessionIQ terminate packet carrying a
Reason.BUSY payload.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.
SessionIQ terminate packet.
public static SessionIQ createBye(String from,
String to,
String sid)
SessionIQ session-terminate packet that is
meant to terminate an on-going, well established session (similar to a SIP
BYE request).
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.
SessionIQ terminate packet
.
public static SessionIQ createCancel(String from,
String to,
String sid)
SessionIQ terminate packet that is
meant to terminate a not yet established session.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.
SessionIQ terminate packet
.
public static SessionIQ createSessionTerminate(String from,
String to,
String sid,
Reason reason,
String reasonText)
SessionIQ terminate packet with the
specified src, dst, sid, and reason.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.reason - the reason for the terminationreasonText - a human readable reason for the termination or
null for none.
SessionIQ terminate
packet.
.
public static SessionIQ createSessionAccept(String from,
String to,
String sid,
RtpDescriptionPacketExtension description)
SessionIQ accept packet with the
specified from, to, sid, and content.
Given our role in a conversation, we would assume that the from
value should also be used for the value of the Google Talk responder.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.description - description containing payload types list
descriptions.
SessionIQ accept
packet.
.
public static SessionIQ createSessionInitiate(String from,
String to,
String sid,
RtpDescriptionPacketExtension description)
SessionIQ with the initiate type.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session that this message will be
terminating.description - description containing payload types list.
SessionIQ terminate
packet.
public static SessionIQ createSessionCandidates(String from,
String to,
String sid,
GTalkCandidatePacketExtension candidate)
SessionIQ with the candidates type.
from - our JIDto - the destination JIDsid - the ID of the Google Talk session.candidate - a GTalkCandidatePacketExtension.
SessionIQ terminate
packet.
public static List<GTalkCandidatePacketExtension> createCandidates(String name,
org.ice4j.ice.IceMediaStream stream)
name - of the streamstream - the IceMediaStream that we'd like to describe in
XML.
public static GTalkCandidatePacketExtension createCandidate(org.ice4j.ice.Candidate candidate,
String name)
GTalkCandidatePacketExtension and initializes it so
that it would describe the state of candidate
candidate - the ICE4J Candidate that we'd like to convert
into an Google Talk packet extension.name - name of the candidate extension
GTalkCandidatePacketExtension corresponding to the
state of the candidate candidate.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||