Ejemplo n.º 1
0
 /**
  * Get a cookie for a given URL and a given name.
  *
  * @return the cookie or null if it does not exist.
  */
 public static String getCookie(String url, String name) {
   return webBrowserStatic.getCookie(url, name);
 }
Ejemplo n.º 2
0
 /**
  * Set a cookie for all web browser instances.
  *
  * @param url the url.
  * @param value the value, in a cookie form like: <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>)
  */
 public static void setCookie(String url, String value) {
   webBrowserStatic.setCookie(url, value);
 }
Ejemplo n.º 3
0
 /** Clear all session cookies from all web browser instances. */
 public static void clearSessionCookies() {
   webBrowserStatic.clearSessionCookies();
 }