link start!
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.tridium.sys.session;
|
||||
|
||||
public interface ISession {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package com.tridium.sys.session;
|
||||
|
||||
import com.tridium.sys.session.ISession;
|
||||
|
||||
public interface SessionManager {
|
||||
public String addSession(ISession var1);
|
||||
|
||||
public ISession removeSession(String var1);
|
||||
|
||||
public ISession getSession(String var1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user