Map.Entry implementation that can be constructed to either be read-only or not.
737475767778798081
Set set = new HashSet(); Enumeration keys = request.getParameterNames(); String key; while (keys.hasMoreElements()) { key = (String)keys.nextElement(); set.add(new MapEntry(key, request.getParameter(key), false)); } return (set); }
Set set = new HashSet(); Enumeration keys = context.getInitParameterNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, context.getInitParameter(key), false)); } return (set); }
808182838485868788
Set set = new HashSet(); Enumeration keys = context.getAttributeNames(); String key; while (keys.hasMoreElements()) { key = (String)keys.nextElement(); set.add(new MapEntry(key, context.getAttribute(key), true)); } return (set); }
Set set = new HashSet(); Enumeration keys = request.getParameterNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getParameterValues(key), false)); } return (set); }
Set set = new HashSet(); Enumeration keys = request.getParameterNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getParameter(key), false)); } return (set); }
Set set = new HashSet(); Enumeration keys = request.getHeaderNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getHeader(key), false)); } return (set); }
9293949596979899100101
Enumeration keys = session.getAttributeNames(PortletSession.PORTLET_SCOPE); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, session.getAttribute(key), true)); } } return (set); }
90919293949596979899
if (sessionExists()) { Enumeration keys = session.getAttributeNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, session.getAttribute(key), true)); } } return (set); }