net.rim.pushsdk.pap.unmarshal
Class BadMessageResponse

java.lang.Object
  extended by net.rim.pushsdk.pap.unmarshal.PapMessage
      extended by net.rim.pushsdk.pap.unmarshal.BadMessageResponse

public class BadMessageResponse
extends PapMessage

Represents a PAP badmessage-response.

Author:
mdicesare

Constructor Summary
BadMessageResponse()
           
 
Method Summary
 String getBadMessageFragment()
          Gets a fragment of the unrecognizable message that caused the PAP request to be considered bad.
 String getCode()
          Gets the status code associated with the bad message response.
 String getDescription()
          Gets the status description associated with the bad message response.
 void setBadMessageFragment(String badMessageFragment)
          Sets a fragment of the unrecognizable message that caused the PAP request to be considered bad.
 void setCode(String code)
          Sets the status code associated with the bad message response.
 void setDescription(String description)
          Sets the status description associated with the bad message response.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class net.rim.pushsdk.pap.unmarshal.PapMessage
getPushId, setPushId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadMessageResponse

public BadMessageResponse()
Method Detail

getCode

public String getCode()
Gets the status code associated with the bad message response.

Returns:
the status code

setCode

public void setCode(String code)
Sets the status code associated with the bad message response.

Parameters:
code - the status code

getDescription

public String getDescription()
Gets the status description associated with the bad message response.

Returns:
the status description

setDescription

public void setDescription(String description)
Sets the status description associated with the bad message response.

Parameters:
description - the status description

getBadMessageFragment

public String getBadMessageFragment()
Gets a fragment of the unrecognizable message that caused the PAP request to be considered bad.

Returns:
a fragment of the unrecognizable message

setBadMessageFragment

public void setBadMessageFragment(String badMessageFragment)
Sets a fragment of the unrecognizable message that caused the PAP request to be considered bad.

Parameters:
badMessageFragment - a fragment of the unrecognizable message

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class PapMessage
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.