net.rim.pushsdk.subscription.web
Class BaseRequest

java.lang.Object
  extended by net.rim.pushsdk.subscription.web.BaseRequest
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResumeRequest, SubscribeRequest, SuspendRequest, UnsubscribeRequest

public class BaseRequest
extends Object
implements Serializable

Base class that represents the details of an HTTP request from a subscription operation.

Author:
mdandrea
See Also:
Serialized Form

Field Summary
protected  String pushApplicationId
          The id of the push application associated with the request.
protected  String subscriberId
          The id of the subscriber associated with the request.
 
Constructor Summary
BaseRequest()
          Constructs a base request.
BaseRequest(String pushApplicationId, String subscriberId)
          Constructs a base request with the given app id and subscriber id.
 
Method Summary
 boolean equals(Object obj)
          Returns true if two base requests are found to be equal and false otherwise.
 String getPushApplicationId()
          Gets the current value of the push application id.
 String getSubscriberId()
          Gets the current value of the subscriber id.
 int hashCode()
          Returns a hashcode for this base request.
 void setPushApplicationId(String pushApplicationId)
          Sets the push application id.
 void setSubscriberId(String subscriberId)
          Sets the subscriber id.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

pushApplicationId

protected String pushApplicationId
The id of the push application associated with the request.


subscriberId

protected String subscriberId
The id of the subscriber associated with the request.

Constructor Detail

BaseRequest

public BaseRequest()
Constructs a base request.


BaseRequest

public BaseRequest(String pushApplicationId,
                   String subscriberId)
Constructs a base request with the given app id and subscriber id.

Parameters:
pushApplicationId - the app id of a push application
subscriberId - the id of a subscriber to a push application
Method Detail

getPushApplicationId

public String getPushApplicationId()
Gets the current value of the push application id.

Returns:
a push application id

setPushApplicationId

public void setPushApplicationId(String pushApplicationId)
Sets the push application id.

Parameters:
pushApplicationId - the push application id

getSubscriberId

public String getSubscriberId()
Gets the current value of the subscriber id.

Returns:
a subscriber id

setSubscriberId

public void setSubscriberId(String subscriberId)
Sets the subscriber id.

Parameters:
subscriberId - the subscriber id

hashCode

public int hashCode()
Returns a hashcode for this base request.

Overrides:
hashCode in class Object
Returns:
a hashcode for this base request.

equals

public boolean equals(Object obj)
Returns true if two base requests are found to be equal and false otherwise.

Overrides:
equals in class Object
Returns:
whether two base requests are equal

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.