|
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.jingle.JinglePacketFactory
public class JinglePacketFactory
A utility class containing methods for creating JingleIQ
instances for various situations.
| Constructor Summary | |
|---|---|
JinglePacketFactory()
|
|
| Method Summary | |
|---|---|
static JingleIQ |
createBusy(String from,
String to,
String sid)
Creates a JingleIQ session-terminate packet carrying a
Reason.BUSY payload. |
static JingleIQ |
createBye(String from,
String to,
String sid)
Creates a JingleIQ session-terminate packet that is
meant to terminate an on-going, well established session (similar to a SIP
BYE request). |
static JingleIQ |
createCancel(String from,
String to,
String sid)
Creates a JingleIQ session-terminate packet that is
meant to terminate a not yet established session. |
static JingleIQ |
createContentAccept(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
Creates a new JingleIQ with the content-accept action. |
static JingleIQ |
createContentAdd(String from,
String to,
String sid,
List<ContentPacketExtension> contentList)
Creates a new JingleIQ with the content-add action. |
static JingleIQ |
createContentModify(String from,
String to,
String sid,
ContentPacketExtension content)
Creates a new JingleIQ with the content-modify action. |
static JingleIQ |
createContentReject(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
Creates a new JingleIQ with the content-reject action. |
static JingleIQ |
createContentRemove(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
Creates a new JingleIQ with the content-remove action. |
static JingleIQ |
createRinging(JingleIQ sessionInitiate)
Creates a JingleIQ session-info packet carrying a
ringing payload. |
static JingleIQ |
createSessionAccept(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
Creates a JingleIQ session-accept packet with the
specified from, to, sid, and content. |
static JingleIQ |
createSessionInfo(String from,
String to,
String sid)
Creates a JingleIQ session-info packet carrying a
the specified payload type. |
static JingleIQ |
createSessionInfo(String from,
String to,
String sid,
SessionInfoType type)
Creates a JingleIQ session-info packet carrying a
the specified payload type. |
static JingleIQ |
createSessionInitiate(String from,
String to,
String sid,
List<ContentPacketExtension> contentList)
Creates a new JingleIQ with the session-initiate action. |
static JingleIQ |
createSessionTerminate(String from,
String to,
String sid,
Reason reason,
String reasonText)
Creates a JingleIQ session-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 JinglePacketFactory()
| Method Detail |
|---|
public static JingleIQ createRinging(JingleIQ sessionInitiate)
JingleIQ session-info packet carrying a
ringing payload.
sessionInitiate - the JingleIQ that established the session
which the response is going to belong to.
JingleIQ session-info packet carrying a
ringing payload.
public static JingleIQ createSessionInfo(String from,
String to,
String sid)
JingleIQ session-info packet carrying a
the specified payload type.
from - our full jidto - their full jidsid - the ID of the Jingle session this IQ will belong to.
JingleIQ session-info packet carrying a
the specified payload type.
public static JingleIQ createSessionInfo(String from,
String to,
String sid,
SessionInfoType type)
JingleIQ session-info packet carrying a
the specified payload type.
from - our full jidto - their full jidsid - the ID of the Jingle session this IQ will belong to.type - the exact type (e.g. ringing, hold, mute) of the session
info IQ.
JingleIQ session-info packet carrying a
the specified payload type.
public static JingleIQ createBusy(String from,
String to,
String sid)
JingleIQ session-terminate packet carrying a
Reason.BUSY payload.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.
JingleIQ session-terminate packet.
public static JingleIQ createBye(String from,
String to,
String sid)
JingleIQ 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 Jingle session that this message will be
terminating.
JingleIQ session-terminate packet
.
public static JingleIQ createCancel(String from,
String to,
String sid)
JingleIQ session-terminate packet that is
meant to terminate a not yet established session.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.
JingleIQ session-terminate packet
.
public static JingleIQ createSessionTerminate(String from,
String to,
String sid,
Reason reason,
String reasonText)
JingleIQ session-terminate packet with the
specified src, dst, sid, and reason.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.reason - the reason for the terminationreasonText - a human readable reason for the termination or
null for none.
JingleIQ session-terminate
packet.
.
public static JingleIQ createSessionAccept(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
JingleIQ session-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 Jingle responder.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ session-accept
packet.
public static JingleIQ createSessionInitiate(String from,
String to,
String sid,
List<ContentPacketExtension> contentList)
JingleIQ with the session-initiate action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ session-initiate
packet.
public static JingleIQ createContentAdd(String from,
String to,
String sid,
List<ContentPacketExtension> contentList)
JingleIQ with the content-add action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ content-add
packet.
public static JingleIQ createContentAccept(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
JingleIQ with the content-accept action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ content-accept
packet.
public static JingleIQ createContentReject(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
JingleIQ with the content-reject action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ content-reject
packet.
public static JingleIQ createContentModify(String from,
String to,
String sid,
ContentPacketExtension content)
JingleIQ with the content-modify action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.content - the content element containing media and transport
description.
JingleIQ content-modify
packet.
public static JingleIQ createContentRemove(String from,
String to,
String sid,
Iterable<ContentPacketExtension> contentList)
JingleIQ with the content-remove action.
from - our JIDto - the destination JIDsid - the ID of the Jingle session that this message will be
terminating.contentList - the content elements containing media and transport
descriptions.
JingleIQ content-remove
packet.
|
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 | |||||||||