377378379380381382383384385386387
if (session != null && ! session.getId().equals(key)) throw new IllegalStateException(key + " != " + session.getId()); if (session != null) { if (session.inUse()) { return (SessionArrayValue)session.copy(env); } } if (session == null) return null;
396397398399400401402403404405406
} if (! isNew) session.setAccess(now); return (SessionArrayValue)session.copy(env); } public void saveSession(Env env, SessionArrayValue session) { SessionArrayValue copy = (SessionArrayValue) session.copy(env);
425426427428429430431432433434435
session = _sessions.putIfNew(key, session); if (! key.equals(session.getId())) throw new IllegalStateException(key + " != " + session.getId()); return (SessionArrayValue)session.copy(env); } /** * Creates a new SessionArrayValue instance. */
395396397398399400401402403404405
414415416417418419420421422423424
448449450451452453454455456457458
401402403404405406407408409410411
420421422423424425426427428429430
454455456457458459460461462463464