KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portal > filter > Util


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.portal.filter;
6
7 import java.util.Enumeration JavaDoc;
8 import javax.servlet.http.HttpSession JavaDoc;
9 import javax.servlet.http.HttpServletRequest JavaDoc ;
10 import org.exoplatform.container.monitor.ActionData;
11 import org.exoplatform.portal.session.RequestInfo;
12 /**
13  * Jul 13, 2004
14  * @author: Tuan Nguyen
15  * @email: tuan08@users.sourceforge.net
16  * @version: $Id: Util.java,v 1.1 2004/07/14 14:02:54 tuan08 Exp $
17  */

18 public class Util {
19     static public void removeAttribute(HttpSession JavaDoc session) {
20         Enumeration JavaDoc e = session.getAttributeNames() ;
21         while(e.hasMoreElements()) {
22             String JavaDoc key = (String JavaDoc) e.nextElement() ;
23             session.removeAttribute(key);
24         }
25     }
26 }
27
Popular Tags