static void SetPendingCookies (List<String[]> pendingCookies) { for (String[] current : pendingCookies) { SetCookie (current[0], current[1], false); } }
static void SetPendingCookies (List<String[]> pendingCookies) { for (String[] current : pendingCookies) { SetCookie (current[0], current[1], false); } }
static void SetPendingCookies (List<String[]> pendingCookies) { for (String[] current : pendingCookies) { SetCookie (current[0], current[1], false); } }
static void SetPendingCookies (List<String[]> pendingCookies) { for (String[] current : pendingCookies) { SetCookie (current[0], current[1], false); } }
static void SetPendingCookies (Vector pendingCookies) { Enumeration elements = pendingCookies.elements (); while (elements.hasMoreElements ()) { String[] current = (String[])elements.nextElement (); SetCookie (current[0], current[1], false); } }
/** * Sets a cookie on a URL. Note that cookies are shared amongst all Browser instances. * * The <code>value</code> parameter must be a cookie header string that * complies with <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a>. * The value is passed through to the native browser unchanged. * <p> * Example value strings: * <code>foo=bar</code> (basic session cookie) * <code>foo=bar; path=/; domain=.eclipse.org</code> (session cookie) * <code>foo=bar; expires=Thu, 01-Jan-2030 00:00:01 GMT</code> (persistent cookie) * <code>foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT</code> (deletes cookie <code>foo</code>) * * @param value the cookie value * @param url the URL to associate the cookie with * @return <code>true</code> if the cookie was successfully set and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the value is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static boolean setCookie (String value, String url) { if (value == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.SetCookie (value, url, true); }
/** * Sets a cookie on a URL. Note that cookies are shared amongst all Browser instances. * * The <code>value</code> parameter must be a cookie header string that * complies with <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a>. * The value is passed through to the native browser unchanged. * <p> * Example value strings: * <code>foo=bar</code> (basic session cookie) * <code>foo=bar; path=/; domain=.eclipse.org</code> (session cookie) * <code>foo=bar; expires=Thu, 01-Jan-2030 00:00:01 GMT</code> (persistent cookie) * <code>foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT</code> (deletes cookie <code>foo</code>) * * @param value the cookie value * @param url the URL to associate the cookie with * @return <code>true</code> if the cookie was successfully set and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the value is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static boolean setCookie (String value, String url) { if (value == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.SetCookie (value, url, true); }
/** * Sets a cookie on a URL. Note that cookies are shared amongst all Browser instances. * * The <code>value</code> parameter must be a cookie header string that * complies with <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a>. * The value is passed through to the native browser unchanged. * <p> * Example value strings: * <code>foo=bar</code> (basic session cookie) * <code>foo=bar; path=/; domain=.eclipse.org</code> (session cookie) * <code>foo=bar; expires=Thu, 01-Jan-2030 00:00:01 GMT</code> (persistent cookie) * <code>foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT</code> (deletes cookie <code>foo</code>) * * @param value the cookie value * @param url the URL to associate the cookie with * @return <code>true</code> if the cookie was successfully set and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the value is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static boolean setCookie (String value, String url) { if (value == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.SetCookie (value, url, true); }
/** * Sets a cookie on a URL. Note that cookies are shared amongst all Browser instances. * * The <code>value</code> parameter must be a cookie header string that * complies with <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a>. * The value is passed through to the native browser unchanged. * <p> * Example value strings: * <code>foo=bar</code> (basic session cookie) * <code>foo=bar; path=/; domain=.eclipse.org</code> (session cookie) * <code>foo=bar; expires=Thu, 01-Jan-2030 00:00:01 GMT</code> (persistent cookie) * <code>foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT</code> (deletes cookie <code>foo</code>) * * @param value the cookie value * @param url the URL to associate the cookie with * @return <code>true</code> if the cookie was successfully set and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the value is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static boolean setCookie (String value, String url) { if (value == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.SetCookie (value, url, true); }
/** * Sets a cookie on a URL. Note that cookies are shared amongst all Browser instances. * * The <code>value</code> parameter must be a cookie header string that * complies with <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a>. * The value is passed through to the native browser unchanged. * <p> * Example value strings: * <code>foo=bar</code> (basic session cookie) * <code>foo=bar; path=/; domain=.eclipse.org</code> (session cookie) * <code>foo=bar; expires=Thu, 01-Jan-2030 00:00:01 GMT</code> (persistent cookie) * <code>foo=; expires=Thu, 01-Jan-1970 00:00:01 GMT</code> (deletes cookie <code>foo</code>) * * @param value the cookie value * @param url the URL to associate the cookie with * @return <code>true</code> if the cookie was successfully set and <code>false</code> otherwise * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the value is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static boolean setCookie (String value, String url) { if (value == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.SetCookie (value, url, true); }