MCPcopy Create free account
hub / github.com/zaproxy/zaproxy / save

Method save

zap/src/main/java/org/parosproxy/paros/model/Session.java:601–622  ·  view source on GitHub ↗

Asynchronous call to save a session. @param fileName @param callback

(final String fileName, final SessionListener callback)

Source from the content-addressed store, hash-verified

599 * @param callback
600 */
601 protected void save(final String fileName, final SessionListener callback) {
602 Thread t =
603 new Thread(
604 new Runnable() {
605 @Override
606 public void run() {
607 Exception thrownException = null;
608 try {
609 save(fileName);
610 } catch (Exception e) {
611 // ZAP: Log exceptions
612 LOGGER.warn(e.getMessage(), e);
613 thrownException = e;
614 }
615 if (callback != null) {
616 callback.sessionSaved(thrownException);
617 }
618 }
619 });
620 t.setPriority(Thread.NORM_PRIORITY - 2);
621 t.start();
622 }
623
624 /**
625 * Synchronous call to save a session.

Callers 1

runMethod · 0.95

Calls 14

isNewStateMethod · 0.95
isLowMemoryOptionSetMethod · 0.95
saveSiteTreeMethod · 0.95
getSessionIdMethod · 0.95
getSessionNameMethod · 0.95
moveSessionDbMethod · 0.80
copySessionDbMethod · 0.80
getDbMethod · 0.80
startMethod · 0.65
saveMethod · 0.65
updateMethod · 0.65
getTableSessionMethod · 0.65

Tested by

no test coverage detected