org.freeswitch.esl.client.transport.message
Enum EslHeaders.Name

java.lang.Object
  extended by java.lang.Enum<EslHeaders.Name>
      extended by org.freeswitch.esl.client.transport.message.EslHeaders.Name
All Implemented Interfaces:
Serializable, Comparable<EslHeaders.Name>
Enclosing class:
EslHeaders

public static enum EslHeaders.Name
extends Enum<EslHeaders.Name>

Standard ESL header names.

Note this enum will need to be kept in synch with any new headers introduced on the server side.

Author:
david varnes

Enum Constant Summary
CONTENT_LENGTH
          "Content-Length"
CONTENT_TYPE
          "Content-Type"
Control
          "Control"
JOB_UUID
          "Job-UUID"
REPLY_TEXT
          "Reply-Text"
SOCKET_MODE
          "Socket-Mode"
 
Method Summary
static EslHeaders.Name fromLiteral(String literal)
           
 String literal()
           
static EslHeaders.Name valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EslHeaders.Name[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONTENT_TYPE

public static final EslHeaders.Name CONTENT_TYPE
"Content-Type"


CONTENT_LENGTH

public static final EslHeaders.Name CONTENT_LENGTH
"Content-Length"


REPLY_TEXT

public static final EslHeaders.Name REPLY_TEXT
"Reply-Text"


JOB_UUID

public static final EslHeaders.Name JOB_UUID
"Job-UUID"


SOCKET_MODE

public static final EslHeaders.Name SOCKET_MODE
"Socket-Mode"


Control

public static final EslHeaders.Name Control
"Control"

Method Detail

values

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

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

valueOf

public static EslHeaders.Name 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

literal

public String literal()

fromLiteral

public static EslHeaders.Name fromLiteral(String literal)


Copyright © 2009-2010 david varnes. All Rights Reserved.