General purpose Enumeration wrapper around an Iterator specified to our controller.
Enumeration
Iterator
177178179180181182183
} } public Enumeration getHeaderNames() { return (new MockEnumeration(headers.keySet().iterator())); }
190191192193194195196
} List list = new ArrayList(); for (int i = 0; i < headers.length; i++) { list.add(headers[i]); } return (new MockEnumeration(list.iterator())); }
317318319320321322323
return (attributes.get(name)); } public Enumeration getAttributeNames() { return (new MockEnumeration(attributes.keySet().iterator())); }
382383384385386387388
return (parameters); } public Enumeration getParameterNames() { return (new MockEnumeration(parameters.keySet().iterator())); }
176177178179180181182
189190191192193194195
316317318319320321322
381382383384385386387
151152153154155156157
public Object getAttribute(String name) { return attributes.get(name); } public Enumeration getAttributeNames() { return new MockEnumeration(attributes.keySet().iterator()); }
184185186187188189190
public Map getParameterMap() { return parameters; } public Enumeration getParameterNames() { return new MockEnumeration(parameters.keySet().iterator()); }