SHOW Signed

net.rim.blackberry.api.browser
Class PostData

java.lang.Object
  |
  +--net.rim.blackberry.api.browser.PostData
Direct Known Subclasses:
MultipartPostData, URLEncodedPostData

public abstract class PostData
extends Object

Common base class for HTTP POST data. .

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 4.0.0

Field Summary
 Category: Signed static int ENCTYPE_MULTIPART_FORMDATA
          Constant for the form encoding type "multipart/form-data".
 Category: Signed static int ENCTYPE_URLENCODED
          Constant for the form encoding type "application/x-www-form-urlencoded".
 
Constructor Summary
 
Method Summary
 Category: Signed abstract  void append(String name, String value)
          Appends the given name-value pair to the form data.
 Category: Signed abstract  byte[] getBytes()
          Retrieves the form data as a byte array suitable for use as an HTTP request body.
 Category: Signed abstract  String getContentType()
          Retrieves the content type of the form data, including parameters.
 Category: Signed abstract  void setData(Object data)
          Sets the form data.
 Category: Signed abstract  int size()
          Retrieves the size of the underlying store.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCTYPE_URLENCODED

public static final int ENCTYPE_URLENCODED
Constant for the form encoding type "application/x-www-form-urlencoded".
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

ENCTYPE_MULTIPART_FORMDATA

public static final int ENCTYPE_MULTIPART_FORMDATA
Constant for the form encoding type "multipart/form-data".
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Constructor Detail
Method Detail

getContentType

public abstract String getContentType()
Retrieves the content type of the form data, including parameters.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

append

public abstract void append(String name,
                            String value)
Appends the given name-value pair to the form data.
Parameters:
name - Name of the form control; if null or "", nothing is added.
value - Value of the form control; a null value is considered equivalent to "".
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setData

public abstract void setData(Object data)
Sets the form data. The required encoding and class of the data are defined in the FormData subclass.
Parameters:
data - Form data.
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getBytes

public abstract byte[] getBytes()
Retrieves the form data as a byte array suitable for use as an HTTP request body.
Returns:
Form data.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

size

public abstract int size()
Retrieves the size of the underlying store.
Returns:
Size of the underlying store.
Since:
JDE 4.0.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.