net.rim.pushsdk.query.subscription
Class SubQueryBadMessage

java.lang.Object
  extended by net.rim.pushsdk.query.subscription.SubQueryBadMessage
All Implemented Interfaces:
Serializable

public class SubQueryBadMessage
extends Object
implements Serializable

Represents a bad message response from the PPG after an attempt was made to perform a subscription query message.

Author:
mdandrea
See Also:
Serialized Form

Field Summary
static String BADMESSAGE_RESPONSE_TAG
          The bad message response XML tag.
static String STATUS_CODE_ATTR
          The XML attribute for the status code in a bad message response.
static String STATUS_DESC_ATTR
          The XML attribute for the status description in a bad message response.
 
Constructor Summary
SubQueryBadMessage()
           
 
Method Summary
 String getCode()
          Gets the status code associated with the bad message response.
 String getDescription()
          Gets the status description associated with the bad message response.
 Date getEventTime()
          Gets the date and time at which the bad message response was received.
 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.
 void setEventTime(Date eventTime)
          Sets the date and time at which the bad message response was received.
 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
 

Field Detail

BADMESSAGE_RESPONSE_TAG

public static final String BADMESSAGE_RESPONSE_TAG
The bad message response XML tag.

See Also:
Constant Field Values

STATUS_CODE_ATTR

public static final String STATUS_CODE_ATTR
The XML attribute for the status code in a bad message response.

See Also:
Constant Field Values

STATUS_DESC_ATTR

public static final String STATUS_DESC_ATTR
The XML attribute for the status description in a bad message response.

See Also:
Constant Field Values
Constructor Detail

SubQueryBadMessage

public SubQueryBadMessage()
Method Detail

getEventTime

public Date getEventTime()
Gets the date and time at which the bad message response was received.

Returns:
the date at which the bad message response was received

setEventTime

public void setEventTime(Date eventTime)
Sets the date and time at which the bad message response was received.

Parameters:
eventTime - the date at which the bad message response was received

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

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.