Revision 2582
Added by Jing Tao about 19 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
138 | 138 |
|
139 | 139 |
private DBConnectionPool connPool = null; |
140 | 140 |
|
141 |
private Hashtable sessionHash = new Hashtable(); |
|
141 |
private static Hashtable sessionHash = new Hashtable();
|
|
142 | 142 |
|
143 | 143 |
private static final String PROLOG = "<?xml version=\"1.0\"?>"; |
144 | 144 |
|
... | ... | |
2893 | 2893 |
out.println(ERRORCLOSE); |
2894 | 2894 |
} |
2895 | 2895 |
} |
2896 |
|
|
2897 |
/** |
|
2898 |
* Method to get session table which store the session info |
|
2899 |
* @return |
|
2900 |
*/ |
|
2901 |
public static Hashtable getSessionHash() |
|
2902 |
{ |
|
2903 |
return sessionHash; |
|
2904 |
} |
|
2896 | 2905 |
} |
Also available in: Unified diff
Change sessionHash to static variable and add a static get method.