Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Class MuteSessionInfoPacketExtension

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.SessionInfoPacketExtension
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.MuteSessionInfoPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class MuteSessionInfoPacketExtension
extends SessionInfoPacketExtension

Represents the mute and unmute session info types.

Author:
Emil Ivov

Field Summary
static String NAME_ATTR_VALUE
          The name of the name mute attribute.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.SessionInfoPacketExtension
NAMESPACE
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
MuteSessionInfoPacketExtension(boolean mute, String name)
          Creates a SessionInfoPacketExtension instance corresponding to either the SessionInfoType.mute or SessionInfoType.unmute types according to the value of the mute parameter.
 
Method Summary
 String getName()
          Returns the name of the session that this extension is pertaining to or null if it is referring to all active sessions.
 boolean isMute()
          Determines if this session info packet represents a mute.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.SessionInfoPacketExtension
getType
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_ATTR_VALUE

public static final String NAME_ATTR_VALUE
The name of the name mute attribute.

See Also:
Constant Field Values
Constructor Detail

MuteSessionInfoPacketExtension

public MuteSessionInfoPacketExtension(boolean mute,
                                      String name)
Creates a SessionInfoPacketExtension instance corresponding to either the SessionInfoType.mute or SessionInfoType.unmute types according to the value of the mute parameter.

Parameters:
mute - true if the new instance is to be of the SessionInfoType.mute type and false for a SessionInfoType.unmute
name - the name of the session to be muted or null if the element pertains to all active sessions
Method Detail

isMute

public boolean isMute()
Determines if this session info packet represents a mute.

Returns:
true if this packet represents a SessionInfoType.mute and false otherwise.

getName

public String getName()
Returns the name of the session that this extension is pertaining to or null if it is referring to all active sessions.

Returns:
the name of the session that this extension is pertaining to or null if it is referring to all active sessions.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.