public class WhiteboardSessionPacketExtension
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_LEAVE
A type string constant indicating that the user would like to leave the
current white board session.
|
static java.lang.String |
ELEMENT_NAME
The name of the XML element used for transport of white-board parameters.
|
static java.lang.String |
NAMESPACE
The names XMPP space that the white-board elements belong to.
|
Constructor and Description |
---|
WhiteboardSessionPacketExtension(java.lang.String xml)
WhiteboardSessionPacketExtension constructor with a XML-SVG String.
|
WhiteboardSessionPacketExtension(WhiteboardSessionJabberImpl session,
java.lang.String contactAddress,
java.lang.String action)
Constructs and initializes a WhiteboardObjectPacketExtension.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
Returns the action associated with this session packet extension.
|
java.lang.String |
getContactAddress()
Returns the address of the contact associated with this packet extension
|
java.lang.String |
getElementName()
Returns the root element name.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
java.lang.String |
getWhiteboardSessionId()
Returns the white board session identifier.
|
void |
setAction(java.lang.String action)
Sets the action associated with this session packet extension.
|
void |
setContactAddress(java.lang.String contactAddress)
Sets the address of the contact associated with this packet extension
|
void |
setWhiteboardSessionId(java.lang.String whiteboardSessionId)
Sets the white board session identifier.
|
java.lang.String |
toXML() |
public static final java.lang.String ACTION_LEAVE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public WhiteboardSessionPacketExtension(WhiteboardSessionJabberImpl session, java.lang.String contactAddress, java.lang.String action)
session
- The WhiteboardSession to be treatedcontactAddress
- The address of the contact associated with this
packet extensionaction
- The current action associated with the WhiteboardSession.public WhiteboardSessionPacketExtension(java.lang.String xml)
xml
- XML-SVG Stringpublic java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getWhiteboardSessionId()
public void setWhiteboardSessionId(java.lang.String whiteboardSessionId)
whiteboardSessionId
- the identifier of the sessionpublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the action associated with this session packet extension.public java.lang.String getContactAddress()
public void setContactAddress(java.lang.String contactAddress)
contactAddress
- the address of the contact associated with this
packet extension
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.