net.rim.device.api.browser.field2
Interface BrowserFieldCookieManager


public interface BrowserFieldCookieManager

Since:
BlackBerry API 5.0.0

Method Summary
 void addCookiesToRequest(String url, HttpConnection connection)
          Add all cookies associated with a url to the provided HttpConnection
 String getCookie(String url)
          Retrieve all cookies associated with a url
 void setCookie(String url, String cookie)
          
 



Method Detail

addCookiesToRequest

void addCookiesToRequest(String url,
                         HttpConnection connection)
                         throws IOException
Add all cookies associated with a url to the provided HttpConnection

Parameters:
url - The url for which stored cookies apply
connection - The HttpConnection to which to add the cookie header
Throws:
IOException
Since:
BlackBerry API 5.0.0

getCookie

String getCookie(String url)
Retrieve all cookies associated with a url

Parameters:
url - The url for which stored cookies apply
Returns:
A concatenated cookie value string
Since:
BlackBerry API 5.0.0

setCookie

void setCookie(String url,
               String cookie)

Parameters:
url - The url for which this cookie should be stored
cookie - The cookie header value
Since:
BlackBerry API 5.0.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.