◆ load()
static CookieManager org.turro.elephant.cookies.CookieManager.load |
( |
| ) |
|
|
static |
Definition at line 43 of file CookieManager.java.
44 boolean exists = FileWatch.exists(ElephantContext.getRealPath(cookieFile));
45 if(_cookies ==
null || FileWatch.isNewer(ElephantContext.getRealPath(cookieFile), _lastLoad) || !exists) {
47 try(FileInputStream fis =
new FileInputStream(ElephantContext.getRealPath(cookieFile))) {
48 _cookies =
new CookieManager();
50 }
catch (IOException ex) {
51 Logger.getLogger(CookieManager.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
54 _cookies =
new CookieManager();
56 _lastLoad = FileWatch.getTime(ElephantContext.getRealPath(cookieFile));
static CookieManager load()
The documentation for this class was generated from the following file: