|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.pap.control.PapRequestMessage
public class PapRequestMessage
Represents a PAP request message.
A PAP request message can contain a control part (XML) and a content part formed as a MIME message such as Push or just have a control part (XML) such as Cancel and Status Query.
| Constructor Summary | |
|---|---|
PapRequestMessage(PapControl control)
Constructs a request for a PAP message that has only a control part (i.e. |
|
PapRequestMessage(PapControl control,
Content content)
Constructs a request for a PAP message that has both a control and content part (i.e. |
|
| Method Summary | |
|---|---|
String |
getBoundary()
Returns the boundary string; null if not a MIME message. |
ContentType |
getContentTypeForHeader()
Gets the content type for the PAP request message. |
void |
marshal(ByteArrayOutputStream out)
Writes out the boundary, the control, and the content (if there is any) to the output stream. |
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 |
|---|
public PapRequestMessage(PapControl control,
Content content)
Content. If it has not, a Push-Message-ID header will be automatically added with the push id. This
may assist in implementing duplicate message detection on the device side and various other use cases.
control - PAP control element (represents the XML part of the PAP message)content - the content to pushpublic PapRequestMessage(PapControl control)
control - PAP control element (represents the XML part of the PAP message)| Method Detail |
|---|
public void marshal(ByteArrayOutputStream out)
throws IOException
out - the output stream
IOException - if any errors occur while writing to the streampublic ContentType getContentTypeForHeader()
public String getBoundary()
public String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||