net.rim.pushsdk.query.subscription
Class SubscriptionQueryRequest
java.lang.Object
net.rim.pushsdk.query.subscription.SubscriptionQueryMessage
net.rim.pushsdk.query.subscription.SubscriptionQueryRequest
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- SubQueryRequestByAddress, SubQueryRequestByStatus
public abstract class SubscriptionQueryRequest
- extends SubscriptionQueryMessage
Represents a subscription query request to the PPG.
- Author:
- mdandrea
- See Also:
- Serialized Form
QUERY_REQUEST_TAG
public static final String QUERY_REQUEST_TAG
- The subscription query request XML tag.
- See Also:
- Constant Field Values
SubscriptionQueryRequest
public SubscriptionQueryRequest(String pushApplicationId)
- Constructs a subscription query request message with the given push app id.
- Parameters:
pushApplicationId - the push application id
marshal
public void marshal(ByteArrayOutputStream out)
throws IOException
- Marshals the subscription query request message to the given output stream.
This method will call getContent(ByteArrayOutputStream) as the content of the request can vary based on
whether it is by addresses or by status.
- Parameters:
out - the output stream
- Throws:
IllegalArgumentException - if the content specified fails validation
IOException - if any IO errors occur while writing to the output stream
getContent
public abstract void getContent(ByteArrayOutputStream out)
throws IOException
- Writes content to the specified output stream. The exact content depends on whether the request is by addresses or by
status.
- Parameters:
out - the output stream
- Throws:
IllegalArgumentException - if the content specified fails validation
IOException - if any IO errors occur while writing to the output stream
Copyright © 2011 Research In Motion. All Rights Reserved.