public static class ColibriConferenceIQ.Content
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML element name of a content of a Jitsi Videobridge
conference IQ.
|
static java.lang.String |
NAME_ATTR_NAME
The XML name of the name attribute of a content of
a conference IQ which represents the name property
of ColibriConferenceIQ.Content.
|
Constructor and Description |
---|
Content()
Initializes a new Content instance without a name and
channels.
|
Content(java.lang.String name)
Initializes a new Content instance with a specific name and
without channels.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addChannel(ColibriConferenceIQ.Channel channel)
Adds a specific Channel to the list of Channels
included into this Content.
|
boolean |
addChannelCommon(ColibriConferenceIQ.ChannelCommon channelCommon)
Adds ChannelCommon to this Content.
|
boolean |
addSctpConnection(ColibriConferenceIQ.SctpConnection conn)
Adds a specific SctpConnection to the list of
SctpConnections included into this Content.
|
ColibriConferenceIQ.Channel |
getChannel(int channelIndex)
Gets the Channel at a specific index/position within the
list of Channels included in this Content.
|
ColibriConferenceIQ.Channel |
getChannel(java.lang.String channelID)
Gets a Channel which is included into this Content
and which has a specific ID.
|
int |
getChannelCount()
Gets the number of Channels included into/associated with
this Content.
|
java.util.List<ColibriConferenceIQ.Channel> |
getChannels()
Gets a list of the Channel included into/associated with
this Content.
|
java.lang.String |
getName()
Gets the name of the content represented by this instance.
|
ColibriConferenceIQ.SctpConnection |
getSctpConnection(java.lang.String connectionID)
Finds an SCTP connection identified by given connectionID.
|
java.util.List<ColibriConferenceIQ.SctpConnection> |
getSctpConnections()
Gets a list of the SctpConnections included into/associated
with this Content.
|
boolean |
removeChannel(ColibriConferenceIQ.Channel channel)
Removes a specific Channel from the list of
Channels included into this Content.
|
boolean |
removeSctpConnection(ColibriConferenceIQ.SctpConnection connection)
Removes given SCTP connection from this IQ.
|
void |
setName(java.lang.String name)
Sets the name of the content represented by this instance.
|
void |
toXML(java.lang.StringBuilder xml)
Appends the XML String representation of this
Content to a specific StringBuilder.
|
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAME_ATTR_NAME
public Content()
public Content(java.lang.String name)
name
- the name to initialize the new instance withpublic boolean addChannel(ColibriConferenceIQ.Channel channel)
channel
- the Channel to be included into this
Contentjava.lang.NullPointerException
- if the specified channel is
nullpublic boolean addChannelCommon(ColibriConferenceIQ.ChannelCommon channelCommon)
channelCommon
- ColibriConferenceIQ.ChannelCommon
instance to be added to
this content.public boolean addSctpConnection(ColibriConferenceIQ.SctpConnection conn)
conn
- the SctpConnection to be included into this
Contentjava.lang.NullPointerException
- if the specified conn is
nullpublic ColibriConferenceIQ.Channel getChannel(int channelIndex)
channelIndex
- the index/position within the list of
Channels included in this Content of the
Channel to be returnedpublic ColibriConferenceIQ.Channel getChannel(java.lang.String channelID)
channelID
- the ID of the Channel included into this
Content to be returnedpublic ColibriConferenceIQ.SctpConnection getSctpConnection(java.lang.String connectionID)
connectionID
- the ID of the SCTP connection to find.public int getChannelCount()
public java.util.List<ColibriConferenceIQ.Channel> getChannels()
public java.lang.String getName()
public java.util.List<ColibriConferenceIQ.SctpConnection> getSctpConnections()
public boolean removeChannel(ColibriConferenceIQ.Channel channel)
channel
- the Channel to be excluded from this
Contentpublic void setName(java.lang.String name)
name
- the name of the content represented by this
instancejava.lang.NullPointerException
- if the specified name is
nullpublic void toXML(java.lang.StringBuilder xml)
xml
- the StringBuilder to which the XML
String representation of this Content is to be
appendedpublic boolean removeSctpConnection(ColibriConferenceIQ.SctpConnection connection)
connection
- the SCTP connection instance to be removed.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.