BrightSide Workbench Full Report + Source Code
org.turro.elephant.cookies.CookieManager Class Reference
Inheritance diagram for org.turro.elephant.cookies.CookieManager:
Collaboration diagram for org.turro.elephant.cookies.CookieManager:

Static Public Member Functions

static CookieManager load ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file CookieManager.java.

Member Function Documentation

◆ load()

static CookieManager org.turro.elephant.cookies.CookieManager.load ( )
static

Definition at line 43 of file CookieManager.java.

43  {
44  boolean exists = FileWatch.exists(ElephantContext.getRealPath(cookieFile));
45  if(_cookies == null || FileWatch.isNewer(ElephantContext.getRealPath(cookieFile), _lastLoad) || !exists) {
46  if(exists) {
47  try(FileInputStream fis = new FileInputStream(ElephantContext.getRealPath(cookieFile))) {
48  _cookies = new CookieManager();
49  _cookies.load(fis);
50  } catch (IOException ex) {
51  Logger.getLogger(CookieManager.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
52  }
53  } else {
54  _cookies = new CookieManager();
55  }
56  _lastLoad = FileWatch.getTime(ElephantContext.getRealPath(cookieFile));
57  }
58  return _cookies;
59  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: