public class ConferenceDescriptionPacketExtension extends AbstractPacketExtension
Modifier and Type | Class and Description |
---|---|
static class |
ConferenceDescriptionPacketExtension.Provider
Parses elements with the NAMESPACE namespace.
|
static class |
ConferenceDescriptionPacketExtension.TransportPacketExtension
A PacketExtension that represents a "transport" child element.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AVAILABLE_ATTR_NAME
The name of the "available" attribute.
|
static java.lang.String |
CALLID_ATTR_NAME
The name of the "callid" attribute.
|
static java.lang.String |
CALLID_ELEM_NAME
The name of the "callid" element.
|
static java.lang.String |
CONFERENCE_NAME_ATTR_NAME
The name of the conference name attribute.
|
static java.lang.String |
ELEMENT_NAME
The name of the "conference" XML element.
|
static java.lang.String |
NAMESPACE
The namespace for the XML element.
|
static java.lang.String |
PASSWORD_ATTR_NAME
The name of the "password" attribute.
|
static java.lang.String |
TRANSPORT_ELEM_NAME
The name of the "transport" element.
|
static java.lang.String |
URI_ATTR_NAME
The name of the "uri" attribute.
|
attributes
Constructor and Description |
---|
ConferenceDescriptionPacketExtension()
Creates a new instance without any attributes or children.
|
ConferenceDescriptionPacketExtension(ConferenceDescription cd)
Creates a new instance which represents ca.
|
ConferenceDescriptionPacketExtension(java.lang.String uri)
Creates a new instance and sets the "uri" attribute.
|
ConferenceDescriptionPacketExtension(java.lang.String uri,
java.lang.String callId)
Creates a new instance and sets the "uri" and "callid" attributes.
|
ConferenceDescriptionPacketExtension(java.lang.String uri,
java.lang.String callId,
java.lang.String password)
Creates a new instance and sets the "uri", "callid" and "password"
attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
addTransport(java.lang.String transport)
Adds a "transport" child element with the given value.
|
java.lang.String |
getCallId()
Gets the value of the "callid" attribute.
|
java.lang.String |
getPassword()
Gets the value of the "password" attribute.
|
java.lang.String |
getUri()
Gets the value of the "uri" attribute.
|
boolean |
isAvailable()
Gets the value of the "available" attribute.
|
void |
setAuth(java.lang.String password)
Sets the value of the "password" attribute.
|
void |
setAvailable(boolean available)
Sets the value of the "available" attribute.
|
void |
setCallId(java.lang.String callId)
Sets the value of the "callid" attribute.
|
void |
setName(java.lang.String name)
Sets the value of the "available" attribute.
|
void |
setUri(java.lang.String uri)
Sets the value of the "uri" attribute.
|
ConferenceDescription |
toConferenceDescription()
Creates a ConferenceDescription corresponding to this
ConferenceDescriptionPacketExtension
|
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 NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String TRANSPORT_ELEM_NAME
public static final java.lang.String URI_ATTR_NAME
public static final java.lang.String PASSWORD_ATTR_NAME
public static final java.lang.String CALLID_ATTR_NAME
public static final java.lang.String CALLID_ELEM_NAME
public static final java.lang.String AVAILABLE_ATTR_NAME
public static final java.lang.String CONFERENCE_NAME_ATTR_NAME
public ConferenceDescriptionPacketExtension()
public ConferenceDescriptionPacketExtension(java.lang.String uri)
uri
- the value to use for the "uri" attribute.public ConferenceDescriptionPacketExtension(java.lang.String uri, java.lang.String callId)
uri
- the value to use for the "uri" attribute.callId
- the value to use for the "callid" attribute.public ConferenceDescriptionPacketExtension(java.lang.String uri, java.lang.String callId, java.lang.String password)
uri
- the value to use for the "uri" attribute.callId
- the value to use for the "callid" attribute.password
- the value to use for the "auth" attribute.public ConferenceDescriptionPacketExtension(ConferenceDescription cd)
cd
- the ConferenceDescription which to represent in the
new instance.public java.lang.String getUri()
public java.lang.String getCallId()
public java.lang.String getPassword()
public void setUri(java.lang.String uri)
uri
- the value to setpublic void setCallId(java.lang.String callId)
callId
- the value to setpublic void setAuth(java.lang.String password)
password
- the value to setpublic void setAvailable(boolean available)
available
- the value to setpublic void setName(java.lang.String name)
available
- the value to setpublic boolean isAvailable()
public void addTransport(java.lang.String transport)
transport
- the transport to add.public ConferenceDescription toConferenceDescription()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.