public class GroupPacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The name of the "group" element.
|
static java.lang.String |
NAMESPACE
The namespace for the "group" element.
|
static java.lang.String |
SEMANTICS_ATTR_NAME
The name of the payload id SDP argument.
|
static java.lang.String |
SEMANTICS_BUNDLE
Name of the "bundle" semantics.
|
attributes
Constructor and Description |
---|
GroupPacketExtension()
Creates a new
GroupPacketExtension instance with the proper
element name and namespace. |
Modifier and Type | Method and Description |
---|---|
void |
addContents(java.util.List<ContentPacketExtension> contents)
Sets the contents of this group.
|
static GroupPacketExtension |
createBundleGroup(java.util.List<ContentPacketExtension> contents)
Creates new GroupPacketExtension for BUNDLE semantics
initialized with given contents list.
|
java.util.List<ContentPacketExtension> |
getContents()
Gets the contents of this group.
|
java.lang.String |
getSemantics()
Gets the semantics of this group.
|
static GroupPacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parses group extension content.
|
void |
setSemantics(java.lang.String semantics)
Sets the semantics of this group.
|
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public static final java.lang.String SEMANTICS_ATTR_NAME
public static final java.lang.String SEMANTICS_BUNDLE
public GroupPacketExtension()
GroupPacketExtension
instance with the proper
element name and namespace.public static GroupPacketExtension createBundleGroup(java.util.List<ContentPacketExtension> contents)
contents
- the list that contains the contents to be bundled.public java.lang.String getSemantics()
public void setSemantics(java.lang.String semantics)
public java.util.List<ContentPacketExtension> getContents()
public void addContents(java.util.List<ContentPacketExtension> contents)
contents
- the contents of this group.public static GroupPacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
parser
- an XML parser positioned at the packet's starting element.java.lang.Exception
- if an error occurs parsing the XML.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.