Class HeaderExtractor
java.lang.Object
org.apache.tiles.request.servlet.extractor.HeaderExtractor
- All Implemented Interfaces:
Addable<String>
,EnumeratedValuesExtractor
,HasAddableKeys<String>
,HasKeys<String>
Extract header values from an HTTP request.
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderExtractor
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 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.Returns the values stored at the given key.void
Sets a value for the given key.
-
Constructor Details
-
HeaderExtractor
public HeaderExtractor(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Constructor.- Parameters:
request
- The request.response
- The response.
-
-
Method Details
-
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. -
getValues
Description copied from interface:EnumeratedValuesExtractor
Returns the values stored at the given key.- Specified by:
getValues
in interfaceEnumeratedValuesExtractor
- Parameters:
key
- The key of the attribute.- Returns:
- The values of the attribute.
-
setValue
Description copied from interface:Addable
Sets a value for the given key.
-