public class JingleContent extends Object implements PacketExtension
Modifier and Type | Field and Description |
---|---|
static String |
CREATOR |
static String |
NAME |
static String |
NODENAME |
Constructor and Description |
---|
JingleContent(String creator,
String name)
Creates a content description..
|
Modifier and Type | Method and Description |
---|---|
void |
addJingleTransport(JingleTransport transport)
Adds a JingleTransport type to the packet.
|
void |
addTransports(List<JingleTransport> transports)
Adds a list of transports to add to the packet.
|
String |
getCreator() |
JingleDescription |
getDescription()
Gets the description for this Jingle content.
|
String |
getElementName()
Returns the XML element name of the element.
|
Iterator<JingleTransport> |
getJingleTransports()
Returns an Iterator for the JingleTransports in the packet.
|
int |
getJingleTransportsCount()
Returns a count of the JingleTransports in the Jingle packet.
|
List<JingleTransport> |
getJingleTransportsList()
Returns a list for the JingleTransports in the packet.
|
String |
getName() |
String |
getNamespace()
Return the namespace.
|
void |
setDescription(JingleDescription description)
Sets the description for this Jingle content.
|
String |
toXML()
Convert a Jingle description to XML.
|
public static final String NODENAME
public static final String CREATOR
public static final String NAME
public JingleContent(String creator, String name)
public String getCreator()
public String getElementName()
getElementName
in interface PacketExtension
public String getNamespace()
getNamespace
in interface PacketExtension
public void setDescription(JingleDescription description)
description
- The descriptionpublic JingleDescription getDescription()
public void addJingleTransport(JingleTransport transport)
transport
- the JignleTransport to add.public void addTransports(List<JingleTransport> transports)
transports
- the transports to add.public Iterator<JingleTransport> getJingleTransports()
public List<JingleTransport> getJingleTransportsList()
public int getJingleTransportsCount()
public String toXML()
toXML
in interface PacketExtension