/** * Returns the value of a cookie that is associated with a URL. * Note that cookies are shared amongst all Browser instances. * * @param name the cookie name * @param url the URL that the cookie is associated with * @return the cookie value, or <code>null</code> if no such cookie exists * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the name is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static String getCookie (String name, String url) { if (name == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.GetCookie (name, url); }
/** * Returns the value of a cookie that is associated with a URL. * Note that cookies are shared amongst all Browser instances. * * @param name the cookie name * @param url the URL that the cookie is associated with * @return the cookie value, or <code>null</code> if no such cookie exists * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the name is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static String getCookie (String name, String url) { if (name == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.GetCookie (name, url); }
/** * Returns the value of a cookie that is associated with a URL. * Note that cookies are shared amongst all Browser instances. * * @param name the cookie name * @param url the URL that the cookie is associated with * @return the cookie value, or <code>null</code> if no such cookie exists * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the name is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static String getCookie (String name, String url) { if (name == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.GetCookie (name, url); }
/** * Returns the value of a cookie that is associated with a URL. * Note that cookies are shared amongst all Browser instances. * * @param name the cookie name * @param url the URL that the cookie is associated with * @return the cookie value, or <code>null</code> if no such cookie exists * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the name is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static String getCookie (String name, String url) { if (name == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.GetCookie (name, url); }
/** * Returns the value of a cookie that is associated with a URL. * Note that cookies are shared amongst all Browser instances. * * @param name the cookie name * @param url the URL that the cookie is associated with * @return the cookie value, or <code>null</code> if no such cookie exists * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the name is null</li> * <li>ERROR_NULL_ARGUMENT - if the url is null</li> * </ul> * * @since 3.5 */ public static String getCookie (String name, String url) { if (name == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (url == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); return WebBrowser.GetCookie (name, url); }