1 5 package org.exoplatform.commons.debug; 6 7 import java.util.* ; 8 import java.io.PrintStream ; 9 10 import javax.portlet.PortletSession ; 11 15 public class PortletSessionHelper { 16 17 static public void printKeyValues(PrintStream out , PortletSession session) { 18 Enumeration e = session.getAttributeNames() ; 19 while(e.hasMoreElements()) { 20 String key = (String ) e.nextElement() ; 21 out.println(key + ": " + session.getAttribute(key)); 22 } 23 } 24 } 25 | Popular Tags |