Copyright 2002 by aragost

com.aragost.servlet
Class RequestParameterMap

java.lang.Object
  |
  +--com.aragost.servlet.MapAdapter
        |
        +--com.aragost.servlet.RequestParameterMap
All Implemented Interfaces:
java.util.Map

public class RequestParameterMap
extends MapAdapter


Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
RequestParameterMap(javax.servlet.ServletRequest req)
          Creates a new RequestParameterMap object.
 
Method Summary
protected  java.lang.Object basicGet(java.lang.String key)
          Returns the value to which this map maps the specified key.
protected  void basicPut(java.lang.String key, java.lang.Object value)
          Associates the specified value with the specified key in this map (optional operation).
protected  void basicRemove(java.lang.String key)
          Removes the mapping for this key from this map if it is present (optional operation).
protected  java.util.Enumeration keyEnumeration()
          Return a enumeration with the keys of this Map.
 
Methods inherited from class com.aragost.servlet.MapAdapter
clear, containsKey, containsValue, entrySet, get, isEmpty, keyIterator, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RequestParameterMap

public RequestParameterMap(javax.servlet.ServletRequest req)
Creates a new RequestParameterMap object.

Parameters:
req - The request
Method Detail

keyEnumeration

protected java.util.Enumeration keyEnumeration()
Description copied from class: MapAdapter
Return a enumeration with the keys of this Map.

Specified by:
keyEnumeration in class MapAdapter
Returns:
DOCUMENT ME!
See Also:
MapAdapter.keyEnumeration()

basicGet

protected java.lang.Object basicGet(java.lang.String key)
Description copied from class: MapAdapter
Returns the value to which this map maps the specified key. Returns null if the map contains no mapping for this key. A return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.

More formally, if this map contains a mapping from a key k to a value v such that (key==null ? k==null : key.equals(k)), then this method returns v; otherwise it returns null. (There can be at most one such mapping.)

Specified by:
basicGet in class MapAdapter
Parameters:
key - key whose associated value is to be returned.
Returns:
the value to which this map maps the specified key, or null if the map contains no mapping for this key.
See Also:
MapAdapter.basicGet(String)

basicPut

protected void basicPut(java.lang.String key,
                        java.lang.Object value)
Description copied from class: MapAdapter
Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for this key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.))

Specified by:
basicPut in class MapAdapter
Parameters:
key - key with which the specified value is to be associated.
value - value to be associated with the specified key.
See Also:
MapAdapter.basicPut(String, Object)

basicRemove

protected void basicRemove(java.lang.String key)
Description copied from class: MapAdapter
Removes the mapping for this key from this map if it is present (optional operation). More formally, if this map contains a mapping from key k to value v such that (key==null ? k==null : key.equals(k)), that mapping is removed. (The map can contain at most one such mapping.)

Specified by:
basicRemove in class MapAdapter
Parameters:
key - key whose mapping is to be removed from the map.
See Also:
MapAdapter.basicRemove(String)

Copyright 2002 by aragost