Class HttpServletRequestParameterMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter<Object>
org.springframework.webflow.context.servlet.HttpServletRequestParameterMap
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
-
Constructor Summary
ConstructorDescriptionHttpServletRequestParameterMap
(jakarta.servlet.http.HttpServletRequest request) Create a new map wrapping the parameters of given request. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getAttribute
(String key) Hook method that needs to be implemented by concrete subclasses.Hook method that needs to be implemented by concrete subclasses.protected void
removeAttribute
(String key) Hook method that needs to be implemented by concrete subclasses.protected void
setAttribute
(String key, 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
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
HttpServletRequestParameterMap
public HttpServletRequestParameterMap(jakarta.servlet.http.HttpServletRequest request) Create a new map wrapping the parameters of given request.
-
-
Method Details
-
getAttribute
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 classStringKeyedMapAdapter<Object>
- Parameters:
key
- the key to lookup- Returns:
- the associated value, or null if none
-
setAttribute
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 classStringKeyedMapAdapter<Object>
- Parameters:
key
- the key to associate the value withvalue
- the value to associate with the key
-
removeAttribute
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 classStringKeyedMapAdapter<Object>
- Parameters:
key
- the key to remove
-
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 classStringKeyedMapAdapter<Object>
- Returns:
- the key enumeration
-