public class ContentPacketExtension extends AbstractPacketExtension
Modifier and Type | Class and Description |
---|---|
static class |
ContentPacketExtension.CreatorEnum
The values we currently support for the creator field.
|
static class |
ContentPacketExtension.SendersEnum
The values we currently support for the senders field.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CREATOR_ATTR_NAME
The name of the "creator" argument.
|
static java.lang.String |
DISPOSITION_ATTR_NAME
The name of the "disposition" argument.
|
static java.lang.String |
ELEMENT_NAME
The name of the "content" element.
|
static java.lang.String |
NAME_ATTR_NAME
The name of the "name" argument.
|
static java.lang.String |
SENDERS_ATTR_NAME
The name of the "senders" argument.
|
attributes
Constructor and Description |
---|
ContentPacketExtension()
Creates a new ContentPacketExtension.
|
ContentPacketExtension(ContentPacketExtension.CreatorEnum creator,
java.lang.String name)
Creates a new ContentPacketExtension instance with the specified
parameters.
|
ContentPacketExtension(ContentPacketExtension.CreatorEnum creator,
java.lang.String disposition,
java.lang.String name,
ContentPacketExtension.SendersEnum senders)
Creates a new ContentPacketExtension.
|
Modifier and Type | Method and Description |
---|---|
ContentPacketExtension.CreatorEnum |
getCreator()
Returns the value of the creator argument.
|
java.lang.String |
getDisposition()
Returns the value of the disposition argument if it exists or
null if it doesn't.
|
java.lang.String |
getName()
Returns the value of the name argument if it exists or
null if it doesn't.
|
ContentPacketExtension.SendersEnum |
getSenders()
Returns the value of the senders argument which indicates the parties
that will be generating content in this session; the allowable values
are defined in the SendersEnum.
|
void |
setCreator(ContentPacketExtension.CreatorEnum creator)
Sets the value of the creator argument.
|
void |
setDisposition(java.lang.String disposition)
Sets the value of the disposition argument if it exists or
null if it doesn't.
|
void |
setName(java.lang.String name)
Sets the value of the name argument if it exists or
null if it doesn't.
|
void |
setSenders(ContentPacketExtension.SendersEnum senders)
Sets the value of the senders argument which indicates the parties
that will be generating content in this session; the allowable values
are defined in the SendersEnum.
|
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 CREATOR_ATTR_NAME
public static final java.lang.String DISPOSITION_ATTR_NAME
public static final java.lang.String NAME_ATTR_NAME
public static final java.lang.String SENDERS_ATTR_NAME
public ContentPacketExtension()
public ContentPacketExtension(ContentPacketExtension.CreatorEnum creator, java.lang.String disposition, java.lang.String name, ContentPacketExtension.SendersEnum senders)
creator
- indicates which party originally generated the content
typedisposition
- indicates how the content definition is to be
interpreted by the recipientname
- the content type according to the creatorsenders
- the parties in the session will be generating content.public ContentPacketExtension(ContentPacketExtension.CreatorEnum creator, java.lang.String name)
creator
- indicates which party originally generated the content
type
interpreted by the recipientname
- the content type according to the creatorpublic ContentPacketExtension.CreatorEnum getCreator()
public void setCreator(ContentPacketExtension.CreatorEnum creator)
creator
- the value of this content's creator argument.public java.lang.String getDisposition()
public void setDisposition(java.lang.String disposition)
disposition
- the value of this content's disposition argument.public java.lang.String getName()
public void setName(java.lang.String name)
name
- the value of this content's name argument.public ContentPacketExtension.SendersEnum getSenders()
ContentPacketExtension.SendersEnum
instance indicating the the parties that
will be generating content in this session.public void setSenders(ContentPacketExtension.SendersEnum senders)
senders
- a ContentPacketExtension.SendersEnum
instance indicating the the parties
that will be generating content in this session.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.