pbx
Enum PBXClient.CMType

java.lang.Object
  extended by java.lang.Enum<PBXClient.CMType>
      extended by pbx.PBXClient.CMType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PBXClient.CMType>
Enclosing class:
PBXClient

public static enum PBXClient.CMType
extends java.lang.Enum<PBXClient.CMType>

PBX Signaling Messages' Types


Enum Constant Summary
_INVALID_
          Invalid CMType
ACCEPT
          The message sent back from the remote peer indicating accepted call
ALIVE
          Respond to Query all pears
BYE
          Indicates call clear down -- either normal or abrupt (like call reject).
INSTANTMESSAGE
          Instant message exchanged between users with encrypted messages
INVITE
          The message sent to remote peer to start the call
LIST
          Query all peers
RING
          The message sent back from remote peer informing about remote alerting status
 
Method Summary
static PBXClient.CMType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PBXClient.CMType[] 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

_INVALID_

public static final PBXClient.CMType _INVALID_
Invalid CMType


INVITE

public static final PBXClient.CMType INVITE
The message sent to remote peer to start the call


RING

public static final PBXClient.CMType RING
The message sent back from remote peer informing about remote alerting status


ACCEPT

public static final PBXClient.CMType ACCEPT
The message sent back from the remote peer indicating accepted call


BYE

public static final PBXClient.CMType BYE
Indicates call clear down -- either normal or abrupt (like call reject).


INSTANTMESSAGE

public static final PBXClient.CMType INSTANTMESSAGE
Instant message exchanged between users with encrypted messages


LIST

public static final PBXClient.CMType LIST
Query all peers


ALIVE

public static final PBXClient.CMType ALIVE
Respond to Query all pears

Method Detail

values

public static PBXClient.CMType[] 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 (PBXClient.CMType c : PBXClient.CMType.values())
    System.out.println(c);

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

valueOf

public static PBXClient.CMType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null