com.funambol.push
Class SANMessageParser

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.String getDigest()
           
 int getInititator()
           
 int getNumberOfSync()
           
 java.lang.String getServerId()
           
 int getSessionId()
           
 SyncInfo[] getSyncInfoArray()
           
 char getUiMode()
           
 java.lang.String getVersion()
           
 SANMessage parseMessage(byte[] msg, boolean skipDigest)
          This method parses a byte stream and builds a SANMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SANMessageParser

public SANMessageParser()
Creates a new instance of SANMessageParser

Method Detail

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 message
skipDigest - 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.