48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.sys.session;
|
|
|
|
import com.tridium.sys.session.ISession;
|
|
import com.tridium.sys.session.SessionManager;
|
|
import java.util.HashMap;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class NSessionManager
|
|
implements SessionManager {
|
|
private HashMap sessions;
|
|
private long nextId;
|
|
|
|
public void postInit() {
|
|
}
|
|
|
|
public synchronized String addSession(ISession iSession) {
|
|
String string = "s" + this.nextId;
|
|
++this.nextId;
|
|
this.sessions.put(string, iSession);
|
|
return string;
|
|
}
|
|
|
|
public synchronized ISession removeSession(String string) {
|
|
ISession iSession = this.getSession(string);
|
|
this.sessions.remove(string);
|
|
return iSession;
|
|
}
|
|
|
|
public synchronized ISession getSession(String string) {
|
|
return (ISession)this.sessions.get(string);
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.sessions = new HashMap();
|
|
this.nextId = 1L;
|
|
}
|
|
|
|
public NSessionManager() {
|
|
this.this();
|
|
}
|
|
}
|
|
|