net.rim.device.api.browser.field2
Class BrowserFieldRequest

java.lang.Object
  extended by net.rim.device.api.browser.field2.BrowserFieldRequest

public class BrowserFieldRequest
extends Object

Since:
BlackBerry API 5.0.0

Constructor Summary
BrowserFieldRequest(String url)
           
BrowserFieldRequest(String url, byte[] postData, HttpHeaders headers)
          Creates a new BrowserFieldRequest instance.
 
Method Summary
 HttpHeaders getHeaders()
          Retrieves the HTTP headers from this request.
 byte[] getPostData()
          Retrieves the post data from this request.
 String getProtocol()
           
 String getURL()
          Retrieves the URL from this request.
 void setURL(String url)
          Sets the URL for this request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

BrowserFieldRequest

public BrowserFieldRequest(String url)
Since:
BlackBerry API 5.0.0

BrowserFieldRequest

public BrowserFieldRequest(String url,
                           byte[] postData,
                           HttpHeaders headers)
Creates a new BrowserFieldRequest instance.

Parameters:
src - Source that generated this request.
url - URL associated with the request.
postData - data for a POST request, or null if the request uses the GET method.
headers - HTTP headers.
Since:
BlackBerry API 5.0.0


Method Detail

getURL

public String getURL()
Retrieves the URL from this request.

Returns:
URL for this request.
Since:
BlackBerry API 5.0.0

setURL

public void setURL(String url)
Sets the URL for this request.

Parameters:
url - new URL to set for this request.
Since:
BlackBerry API 5.0.0

getProtocol

public String getProtocol()
Since:
BlackBerry API 5.0.0

getPostData

public byte[] getPostData()
Retrieves the post data from this request.

Returns:
post data for this request.
Since:
BlackBerry API 5.0.0

getHeaders

public HttpHeaders getHeaders()
Retrieves the HTTP headers from this request.

Returns:
HTTP headers for this request.
Since:
BlackBerry API 5.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal