litesoft
@ 947
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.servlets; import java.io.*; import java.util.*; import javax.servlet.http.*; public class SetOfIdsManager implements Serializable { private static final String SET_OF_IDS_MANAGER = "SetOfIdsManager"; private static HttpSessionHelper.Factory FACTORY = new HttpSessionHelper.Factory() { @Override public Object create() { return new SetOfIdsManager(); } }; public static SetOfIdsManager get( HttpSession pSession ) { return (SetOfIdsManager) HttpSessionHelper.get( pSession, FACTORY, SET_OF_IDS_MANAGER ); } private final Map<String, SetOfIds> mKeyToSets = new HashMap<String, SetOfIds>(); public synchronized SetOfIds getSetOfIds( String pSetOfIdsKey ) { return mKeyToSets.get( pSetOfIdsKey ); } public synchronized SetOfIds setSetOfIds( String pSetOfIdsKey, SetOfIds pSetOfIds ) { mKeyToSets.put( pSetOfIdsKey, pSetOfIds ); return pSetOfIds; } } |
Commits for litesoft/trunk/Java/core/Server/src/org/litesoft/servlets/SetOfIdsManager.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
849 Diff | GeorgeS | Tue 11 Sep, 2012 17:11:59 +0000 | Clean up serialization |
49 Diff | GeorgeS | Mon 12 Apr, 2010 02:59:10 +0000 | License Text |
24 Diff | GeorgeS | Wed 24 Feb, 2010 01:51:38 +0000 | |
2 | GeorgeS | Sun 07 Feb, 2010 12:50:58 +0000 |