litesoft
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
|
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()
{
public Object create()
{
return new SetOfIdsManager();
}
};
public static SetOfIdsManager get( HttpSession pSession )
{
return (SetOfIdsManager) HttpSessionHelper.get( pSession, FACTORY, SET_OF_IDS_MANAGER );
}
private 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;
}
}
|
Revision |
Author |
Commited |
Message |
2
|
GeorgeS
|
Sun 07 Feb, 2010 12:50:58 +0000 |
|