public class CookieUtilities extends Object
| Constructor and Description |
|---|
CookieUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
retrieveCookies(URLConnection connection) |
static void |
setCookies(URLConnection conn)
Prior to opening a URLConnection, calling this method will set all
unexpired cookies that match the path or subpaths for thi underlying URL
The connection MUST NOT have been opened method or an IOException will be
thrown.
|
public static Map cookie
public static void retrieveCookies(URLConnection connection)
public static void setCookies(URLConnection conn) throws Exception
conn - a java.net.URLConnection - must NOT be open, or IOException
will be thrownIOException - Thrown if conn has already been opened.ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.