net.rim.pushsdk.pap.unmarshal
Class ResultNotificationUnmarshaller

java.lang.Object
  extended by net.rim.pushsdk.pap.unmarshal.PapMessageUnmarshaller
      extended by net.rim.pushsdk.pap.unmarshal.ResultNotificationUnmarshaller

public class ResultNotificationUnmarshaller
extends PapMessageUnmarshaller

Unmarshals a PAP Result Notification message.

Author:
mdandrea

Nested Class Summary
 
Nested classes/interfaces inherited from class net.rim.pushsdk.pap.unmarshal.PapMessageUnmarshaller
PapMessageUnmarshaller.PushSDKErrorHandler
 
Field Summary
 
Fields inherited from class net.rim.pushsdk.pap.unmarshal.PapMessageUnmarshaller
ADDRESS_TAG, ADDRESS_VALUE_ATTR, BAD_FORMAT_ERROR_MSG, BEARER_ATTR, BEARER_REQ_ATTR, CODE_ATTR, DELIVERY_METHOD_ATTR, DESC_ATTR, EVENT_TIME_ATTR, MESSAGE_STATE_ATTR, MISSING_MANDATORY_ERROR_MSG, PUSH_ID_ATTR, QUALITY_OF_SERVICE_TAG, saxParser, SENDER_ADDRESS_ATTR, SENDER_NAME_ATTR, VALUE_MSG
 
Constructor Summary
ResultNotificationUnmarshaller()
          Constructs a result notification unmarshaller.
 
Method Summary
 PapMessage unmarshal(String xml)
          Unmarshals a PAP XML message.
 
Methods inherited from class net.rim.pushsdk.pap.unmarshal.PapMessageUnmarshaller
unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultNotificationUnmarshaller

public ResultNotificationUnmarshaller()
                               throws PushSDKException
Constructs a result notification unmarshaller.

Throws:
PushSDKException - if any errors occur initializing the XML parser
Method Detail

unmarshal

public PapMessage unmarshal(String xml)
                     throws SAXException,
                            IOException
Description copied from class: PapMessageUnmarshaller
Unmarshals a PAP XML message.

Specified by:
unmarshal in class PapMessageUnmarshaller
Parameters:
xml - the PAP XML to unmarshal
Returns:
the umarshalled PAP message
Throws:
SAXException - if any SAX errors occur during processing
IOException - if any IO errors occur


Copyright © 2011 Research In Motion. All Rights Reserved.