org.springframework.webflow.context.servlet
Class HttpServletRequestParameterMap

java.lang.Object
  extended by org.springframework.binding.collection.StringKeyedMapAdapter
      extended by org.springframework.webflow.context.servlet.HttpServletRequestParameterMap
All Implemented Interfaces:
java.util.Map

public class HttpServletRequestParameterMap
extends StringKeyedMapAdapter

Map backed by the Servlet HTTP request parameter map for accessing request parameters. Also provides support for multi-part requests, providing transparent access to the request "fileMap" as a request parameter entry.

Author:
Keith Donald

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
HttpServletRequestParameterMap(javax.servlet.http.HttpServletRequest request)
          Create a new map wrapping the parameters of given request.
 
Method Summary
protected  java.lang.Object getAttribute(java.lang.String key)
          Hook method that needs to be implemented by concrete subclasses.
protected  java.util.Iterator getAttributeNames()
          Hook method that needs to be implemented by concrete subclasses.
protected  void removeAttribute(java.lang.String key)
          Hook method that needs to be implemented by concrete subclasses.
protected  void setAttribute(java.lang.String key, java.lang.Object value)
          Hook method that needs to be implemented by concrete subclasses.
 
Methods inherited from class org.springframework.binding.collection.StringKeyedMapAdapter
clear, containsKey, containsValue, entrySet, get, isEmpty, 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

HttpServletRequestParameterMap

public HttpServletRequestParameterMap(javax.servlet.http.HttpServletRequest request)
Create a new map wrapping the parameters of given request.

Method Detail

getAttribute

protected java.lang.Object getAttribute(java.lang.String key)
Description copied from class: StringKeyedMapAdapter
Hook method that needs to be implemented by concrete subclasses. Gets a value associated with a key.

Specified by:
getAttribute in class StringKeyedMapAdapter
Parameters:
key - the key to lookup
Returns:
the associated value, or null if none

setAttribute

protected void setAttribute(java.lang.String key,
                            java.lang.Object value)
Description copied from class: StringKeyedMapAdapter
Hook method that needs to be implemented by concrete subclasses. Puts a key-value pair in the map, overwriting any possible earlier value associated with the same key.

Specified by:
setAttribute in class StringKeyedMapAdapter
Parameters:
key - the key to associate the value with
value - the value to associate with the key

removeAttribute

protected void removeAttribute(java.lang.String key)
Description copied from class: StringKeyedMapAdapter
Hook method that needs to be implemented by concrete subclasses. Removes a key and its associated value from the map.

Specified by:
removeAttribute in class StringKeyedMapAdapter
Parameters:
key - the key to remove

getAttributeNames

protected java.util.Iterator getAttributeNames()
Description copied from class: StringKeyedMapAdapter
Hook method that needs to be implemented by concrete subclasses. Returns an enumeration listing all keys known to the map.

Specified by:
getAttributeNames in class StringKeyedMapAdapter
Returns:
the key enumeration