Package org.apache.struts2.dispatcher
Class RequestMap
- All Implemented Interfaces:
- Serializable,- Map<String,- Object> 
A simple implementation of the 
Map interface to handle a collection of request attributes.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionRequestMap(jakarta.servlet.http.HttpServletRequest request) Saves the request to use as the backing for getting and setting values
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Removes all attributes from the request as well as clears entries in this map.entrySet()Returns a Set of attributes from the http request.Returns the request attribute associated with the given key or null if it doesn't exist.Saves an attribute in the request.Removes the specified request attribute.Methods inherited from class java.util.AbstractMapclone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, valuesMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
RequestMappublic RequestMap(jakarta.servlet.http.HttpServletRequest request) Saves the request to use as the backing for getting and setting values- Parameters:
- request- the http servlet request.
 
 
- 
- 
Method Details- 
clearpublic void clear()Removes all attributes from the request as well as clears entries in this map.
- 
entrySetReturns a Set of attributes from the http request.
- 
getReturns the request attribute associated with the given key or null if it doesn't exist.
- 
putSaves an attribute in the request.
- 
removeRemoves the specified request attribute.
 
-