Class CompletionCause
java.lang.Object
com.bytedesk.call.mrcp4j.message.header.CompletionCause
- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompletionCause(short causeCode, String causeName) CompletionCause(short causeCode, String causeName, String valueString) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringconstructValueString(short causeCode, String causeName) booleanshortinthashCode()toString()
-
Field Details
-
_causeCode
private short _causeCode -
_causeName
-
_valueString
-
-
Constructor Details
-
CompletionCause
- Parameters:
causeCode- coded value (000, 001, etc.) signifying the cause for request completion.causeName- textual representation of the cause for request completion.- Throws:
IllegalArgumentException- if the Cause-Code or Cause-Name values provided are not valid.
-
CompletionCause
CompletionCause(short causeCode, String causeName, String valueString) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getCauseCode
public short getCauseCode()- Returns:
- the Cause-Code.
-
getCauseName
- Returns:
- the Cause-Name.
-
toString
-
equals
-
hashCode
public int hashCode() -
constructValueString
private static String constructValueString(short causeCode, String causeName) throws IllegalArgumentException - Throws:
IllegalArgumentException
-