Enum Class MrcpRequestState

java.lang.Object
java.lang.Enum<MrcpRequestState>
com.bytedesk.call.mrcp4j.common.MrcpRequestState
All Implemented Interfaces:
Serializable, Comparable<MrcpRequestState>, Constable

public enum MrcpRequestState extends Enum<MrcpRequestState>
Defines the request states that are valid for MRCPv2.
Author:
Niels Godfredsen <ngodfredsen@users.sourceforge.net>
See Also:
  • Enum Constant Details

    • PENDING

      public static final MrcpRequestState PENDING
      The request has been placed on a queue and will be processed in first-in-first-out order.
    • IN_PROGRESS

      public static final MrcpRequestState IN_PROGRESS
      The request is being processed and is not yet complete.
    • COMPLETE

      public static final MrcpRequestState COMPLETE
      The request has been processed to completion and there will be no more events or other messages from the resource to the client with this request-id.
  • Field Details

    • _name

      private String _name
  • Constructor Details

    • MrcpRequestState

      private MrcpRequestState(String name)
  • Method Details

    • values

      public static MrcpRequestState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MrcpRequestState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MrcpRequestState>
    • fromString

      public static MrcpRequestState fromString(String str) throws IllegalArgumentException
      Converts an MRCP request state in string format to the appropriate MRCP4J enum value.
      Parameters:
      str - MRCP request state
      Returns:
      the request state enum instance corresponding to the string value specified
      Throws:
      IllegalArgumentException - if the string value specified does not correspond to an existing MRCP request state