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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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".
 
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_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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Method Detail

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.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 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.