com.funambol.push
Class SANMessageParser
java.lang.Object
com.funambol.push.SANMessageParser
public class SANMessageParser
- extends java.lang.Object
Message Parser for messages carring a server
alerted notification (SAN)
Constructor Summary |
SANMessageParser()
Creates a new instance of SANMessageParser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SANMessageParser
public SANMessageParser()
- Creates a new instance of SANMessageParser
parseMessage
public SANMessage parseMessage(byte[] msg,
boolean skipDigest)
throws MessageParserException
- This method parses a byte stream and builds a SANMessage.
- Parameters:
msg
- is the raw messageskipDigest
- this flag specifies if the first 6 bytes must be
skipped or not, depending on the message that the server sends. This is
temporary and shall be fixed when the server behavior is consinstent in
all cases
- Returns:
- SAN Message object handling properties of SAN OTA Message
- Throws:
MessageParserException
getDigest
public java.lang.String getDigest()
getVersion
public java.lang.String getVersion()
getUiMode
public char getUiMode()
getInititator
public int getInititator()
getSessionId
public int getSessionId()
getServerId
public java.lang.String getServerId()
getNumberOfSync
public int getNumberOfSync()
getSyncInfoArray
public SyncInfo[] getSyncInfoArray()
Copyright © 2001-2009 Funambol.