Class SessionScopeExtractor
java.lang.Object
org.apache.tiles.request.servlet.extractor.SessionScopeExtractor
- All Implemented Interfaces:
Addable<Object>
,AttributeExtractor
,HasAddableKeys<Object>
,HasKeys<Object>
,HasRemovableKeys<Object>
Extract attributes from session scope.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionScopeExtractor
(jakarta.servlet.http.HttpServletRequest request) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()
The enumeration of the keys of the stored attributes.Returns the value of the attribute with the given key.void
removeValue
(String name) Removes an attribute.void
Sets a value for the given key.
-
Constructor Details
-
SessionScopeExtractor
public SessionScopeExtractor(jakarta.servlet.http.HttpServletRequest request) Constructor.- Parameters:
request
- The servlet request.
-
-
Method Details
-
setValue
Description copied from interface:Addable
Sets a value for the given key. -
removeValue
Description copied from interface:HasRemovableKeys
Removes an attribute.- Specified by:
removeValue
in interfaceHasRemovableKeys<Object>
- Parameters:
name
- The key of the attribute to remove.
-
getKeys
Description copied from interface:HasKeys
The enumeration of the keys of the stored attributes. -
getValue
Description copied from interface:HasKeys
Returns the value of the attribute with the given key.
-