net.rim.pushsdk.pap.unmarshal
Class ResponseResult

java.lang.Object
  extended by net.rim.pushsdk.pap.unmarshal.ResponseResult
Direct Known Subclasses:
CancelResult, StatusQueryResult

public class ResponseResult
extends Object

Base class for results within PAP responses.

Author:
mdicesare

Constructor Summary
ResponseResult()
           
 
Method Summary
 StatusCode getCode()
          Gets the status code associated with the PAP response result.
 String getDescription()
          Gets the status description associated with the PAP response result.
 void setCode(StatusCode code)
          Sets the status code associated with the PAP response result.
 void setDescription(String description)
          Sets the status description associated with the PAP response result.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseResult

public ResponseResult()
Method Detail

getCode

public StatusCode getCode()
Gets the status code associated with the PAP response result.

Note: Use the getDescription() method to get the description from the PPG.

Returns:
the status code

setCode

public void setCode(StatusCode code)
Sets the status code associated with the PAP response result.

Note: Use the getDescription() method to get the description from the PPG.

Parameters:
code - the status code

getDescription

public String getDescription()
Gets the status description associated with the PAP response result.

Returns:
the status description

setDescription

public void setDescription(String description)
Sets the status description associated with the PAP response result.

Parameters:
description - the status description

toString

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

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


Copyright © 2011 Research In Motion. All Rights Reserved.