Package com.bytedesk.call.mrcp4j.common
Enum Class MrcpRequestState
- All Implemented Interfaces:
Serializable,Comparable<MrcpRequestState>,Constable
Defines the request states that are valid for MRCPv2.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe 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.The request is being processed and is not yet complete.The request has been placed on a queue and will be processed in first-in-first-out order. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MrcpRequestStatefromString(String str) Converts an MRCP request state in string format to the appropriate MRCP4J enum value.toString()static MrcpRequestStateReturns the enum constant of this class with the specified name.static MrcpRequestState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
The request has been placed on a queue and will be processed in first-in-first-out order. -
IN_PROGRESS
The request is being processed and is not yet complete. -
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
-
-
Constructor Details
-
MrcpRequestState
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<MrcpRequestState>
-
fromString
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
-