Map.Entry implementation that can be constructed to either be read-only or not.
868788899091929394
Set set = new HashSet(); Enumeration keys = request.getHeaderNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getHeaders(key), false)); } return (set); }
798081828384858687
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.getAttributeNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, request.getAttribute(key), true)); } return (set); }
72737475767778798081
public Set entrySet() { Set set = new HashSet(); Cookie[] cookies = request.getCookies(); if (cookies != null) { for (int i = 0; i < cookies.length; i++) { set.add(new MapEntry(cookies[i].getName(), cookies[i], false)); } } return (set); }
727374757677787980
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 = context.getInitParameterNames(); String key; while (keys.hasMoreElements()) { key = (String) keys.nextElement(); set.add(new MapEntry(key, context.getInitParameter(key), false)); } return (set); }
89909192939495969798
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); }