Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.jingle
Enum SessionInfoType

java.lang.Object
  extended by java.lang.Enum<SessionInfoType>
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.SessionInfoType
All Implemented Interfaces:
Serializable, Comparable<SessionInfoType>

public enum SessionInfoType
extends Enum<SessionInfoType>

Contains an enumeration of all possible session-info element.

Author:
Emil Ivov

Enum Constant Summary
active
          The active payload indicates that the principal or device is again actively participating in the session after having been on mute or having put the other party on hold.
hold
          The hold payload indicates that the principal is temporarily not listening for media from the other party
mute
          The mute payload indicates that the principal is temporarily not sending media to the other party but continuing to accept media from the other party.
ringing
          The ringing payload indicates that the device is ringing but the principal has not yet interacted with it to answer (this maps to the SIP 180 response code).
unhold
          Ends a hold state.
unmute
          Ends a mute state.
 
Method Summary
static SessionInfoType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionInfoType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

active

public static final SessionInfoType active
The active payload indicates that the principal or device is again actively participating in the session after having been on mute or having put the other party on hold. The active element applies to all aspects of the session, and thus does not possess a 'name' attribute.


hold

public static final SessionInfoType hold
The hold payload indicates that the principal is temporarily not listening for media from the other party


mute

public static final SessionInfoType mute
The mute payload indicates that the principal is temporarily not sending media to the other party but continuing to accept media from the other party.


ringing

public static final SessionInfoType ringing
The ringing payload indicates that the device is ringing but the principal has not yet interacted with it to answer (this maps to the SIP 180 response code).


unhold

public static final SessionInfoType unhold
Ends a hold state.


unmute

public static final SessionInfoType unmute
Ends a mute state.

Method Detail

values

public static SessionInfoType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SessionInfoType c : SessionInfoType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SessionInfoType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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