public class VisualVoicemailSmsParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VisualVoicemailSmsParser.WrappedMessageData
Class wrapping the raw OMTP message data, internally represented as as map of all key-value
pairs found in the SMS body.
|
Constructor and Description |
---|
VisualVoicemailSmsParser() |
Modifier and Type | Method and Description |
---|---|
static VisualVoicemailSmsParser.WrappedMessageData |
parse(String clientPrefix,
String smsBody)
Parses the supplied SMS body and returns back a structured OMTP message.
|
static VisualVoicemailSmsParser.WrappedMessageData |
parseAlternativeFormat(String smsBody)
The alternative format is [Event]?
|
public static VisualVoicemailSmsParser.WrappedMessageData parse(String clientPrefix, String smsBody)
public static VisualVoicemailSmsParser.WrappedMessageData parseAlternativeFormat(String smsBody)
"MBOXUPDATE?m=1;server=example.com;port=143;name=foo@example.com;pw=foo".
This format is not protected with a client prefix and should be handled with care. For
safety, the event type must be one of ALLOWED_ALTERNATIVE_FORMAT_EVENT