Enum Class MrcpHeaderName
- All Implemented Interfaces:
Serializable,Comparable<MrcpHeaderName>,Constable
Defines all valid MRCPv2 header names and provides factory methods for creating header value objects from header value strings.
- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classTODOCprivate static classTODOCprivate static classTODOCprivate static classTODOCprivate static classTODOCNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioncom.bytedesk.call.mrcp4j.message.header.RequestIdListcom.bytedesk.call.mrcp4j.message.header.ChannelIdentifierjava.lang.Floatcom.bytedesk.call.mrcp4j.message.header.CompletionCausejava.lang.Floatjava.lang.Floatjava.lang.Integerjava.lang.Booleanjava.lang.Floatjava.lang.Integerjava.lang.Longjava.lang.Booleanjava.lang.Floatjava.lang.Longjava.lang.Longjava.lang.Floatjava.lang.Boolean -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate ValueFactorystatic EnumSet<MrcpHeaderName>static EnumSet<MrcpHeaderName>static EnumSet<MrcpHeaderName>static EnumSet<MrcpHeaderName>static EnumSet<MrcpHeaderName>static EnumSet<MrcpHeaderName> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMrcpHeaderName(String name) privateMrcpHeaderName(String name, ValueFactory valueFactory) privateMrcpHeaderName(String name, Class<?> valueClass) -
Method Summary
Modifier and TypeMethodDescriptionconstructHeader(Object valueObject) createHeader(String valueString) Creates a newMrcpHeaderinstance based on thisMrcpHeaderName.static MrcpHeadercreateHeader(String name, String valueString) Factory method to create newMrcpHeaderinstances.createHeaderValue(String valueString) Creates the value object applicable to thisMrcpHeaderNamefrom a value string.static MrcpHeaderNamefromString(String str) Converts an MRCP header field-name in string format to the appropriate MRCP4J enum value.booleanTests whether this header name is applicable to a specified MRCP resource type.booleanTests whether this instance represents a header name corresponding to a generic-header.booleanTests whether an MRCP header field-name in string format matches this enum instance.toString()static MrcpHeaderNameReturns the enum constant of this class with the specified name.static MrcpHeaderName[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHANNEL_IDENTIFIER
com.bytedesk.call.mrcp4j.message.header.ChannelIdentifier -
ACTIVE_REQUEST_ID_LIST
com.bytedesk.call.mrcp4j.message.header.RequestIdList -
PROXY_SYNC_ID
-
ACCEPT_CHARSET
-
CONTENT_ID
-
CONTENT_TYPE
-
CONTENT_LENGTH
java.lang.Integer -
CONTENT_BASE
-
CONTENT_LOCATION
-
CONTENT_ENCODING
-
CACHE_CONTROL
-
LOGGING_TAG
-
SET_COOKIE
-
SET_COOKIE2
-
VENDOR_SPECIFIC
-
JUMP_SIZE
-
KILL_ON_BARGE_IN
java.lang.Boolean -
SPEAKER_PROFILE
-
COMPLETION_CAUSE
com.bytedesk.call.mrcp4j.message.header.CompletionCause -
COMPLETION_REASON
-
VOICE_PARAMETER
-
PROSODY_PARAMETER
-
SPEECH_MARKER
-
SPEECH_LANGUAGE
-
FETCH_HINT
-
AUDIO_FETCH_HINT
-
FETCH_TIMEOUT
-
FAILED_URI
-
FAILED_URI_CAUSE
-
SPEAK_RESTART
-
SPEAK_LENGTH
-
LOAD_LEXICON
-
LEXICON_SEARCH_ORDER
-
CONFIDENCE_THRESHOLD
java.lang.Float -
SENSITIVITY_LEVEL
java.lang.Float -
SPEED_VS_ACCURACY
java.lang.Float -
N_BEST_LIST_LENGTH
java.lang.Integer -
NO_INPUT_TIMEOUT
java.lang.Long -
INPUT_TYPE
-
RECOGNITION_TIMEOUT
-
WAVEFORM_URI
-
INPUT_WAVEFORM_URI
-
RECOGNIZER_CONTEXT_BLOCK
-
START_INPUT_TIMERS
java.lang.Boolean -
SPEECH_COMPLETE_TIMEOUT
java.lang.Long -
SPEECH_INCOMPLETE_TIMEOUT
java.lang.Long -
DTMF_INTERDIGIT_TIMEOUT
-
DTMF_TERM_TIMEOUT
-
DTMF_TERM_CHAR
-
SAVE_WAVEFORM
java.lang.Boolean -
MEDIA_TYPE
-
NEW_AUDIO_CHANNEL
-
VER_BUFFER_UTTERANCE
-
RECOGNITION_MODE
-
CANCEL_IF_QUEUE
-
HOTWORD_MAX_DURATION
-
HOTWORD_MIN_DURATION
-
INTERPRET_TEXT
-
ONE_OF_RULE_ID_URI
-
NUM_MIN_CONSISTENT_PRONUNCIATIONS
-
CONSISTENCY_THRESHOLD
java.lang.Float -
CLASH_THRESHOLD
java.lang.Float -
PERSONAL_GRAMMAR_URI
-
ENROLL_UTTERANCE
-
PHRASE_ID
-
PHRASE_NL
-
WEIGHT
-
SAVE_BEST_WAVEFORM
-
NEW_PHRASE_ID
-
CONFUSABLE_PHRASES_URI
-
ABORT_PHRASE_ENROLLMENT
-
RECORD_URI
-
MAX_TIME
-
TRIM_LENGTH
-
FINAL_SILENCE
-
CAPTURE_ON_SPEECH
-
REPOSITORY_URI
-
VOICEPRINT_IDENTIFIER
-
VERIFICATION_MODE
-
ADAPT_MODEL
-
ABORT_MODEL
-
MIN_VERIFICATION_SCORE
java.lang.Float -
NUM_MIN_VERIFICATION_PHRASES
-
NUM_MAX_VERIFICATION_PHRASES
-
VOICEPRINT_EXISTS
-
ABORT_VERIFICATION
-
-
Field Details
-
GENERIC_HEADER_NAMES
-
SYNTHESIZER_HEADER_NAMES
-
RECOG_ONLY_HEADER_NAMES
-
ENROLLMENT_HEADER_NAMES
-
RECORDER_HEADER_NAMES
-
VERIFICATION_HEADER_NAMES
-
_name
-
_valueFactory
-
-
Constructor Details
-
MrcpHeaderName
-
MrcpHeaderName
-
MrcpHeaderName
-
-
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
-
isMatch
Tests whether an MRCP header field-name in string format matches this enum instance.- Parameters:
name- MRCP header field-name.- Returns:
- true if the specified field-name matches this enum instance.
-
isGeneric
public boolean isGeneric()Tests whether this instance represents a header name corresponding to a generic-header.- Returns:
- true if this header name corresponds to a generic-header.
-
isApplicableTo
Tests whether this header name is applicable to a specified MRCP resource type. Note that some resources may not support TODOC...- Parameters:
type- the MRCP resource type to be tested against.- Returns:
- true if this header name corresponds to the specified resource type.
-
toString
- Overrides:
toStringin classEnum<MrcpHeaderName>
-
fromString
Converts an MRCP header field-name in string format to the appropriate MRCP4J enum value.- Parameters:
str- MRCP header field-name- Returns:
- the header name enum instance corresponding to the string value specified
- Throws:
IllegalArgumentException- if the string value specified does not correspond to an existing MRCP header field-name
-
constructHeader
public MrcpHeader constructHeader(Object valueObject) throws ClassCastException, IllegalArgumentException -
createHeaderValue
Creates the value object applicable to thisMrcpHeaderNamefrom a value string.- Parameters:
valueString- the string value for the value object instance.- Returns:
- value object for the header using the
MrcpHeaderNameand supplied value string. - Throws:
IllegalValueException- if the value string passed is not valid for the header type.
-
createHeader
Creates a newMrcpHeaderinstance based on thisMrcpHeaderName.- Parameters:
valueString- the string value for the newMrcpHeaderinstance.- Returns:
- a new instance using the
MrcpHeaderNameand supplied value.
-
createHeader
Factory method to create newMrcpHeaderinstances.- Parameters:
name- field-name of the header.valueString- field-value of the header.- Returns:
- a new instance of
MrcpHeaderNameusing the supplied field-name and field-value.
-