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.voidSets 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:HasKeysThe enumeration of the keys of the stored attributes. -
getValue
Description copied from interface:HasKeysReturns the value of the attribute with the given key. -
getValues
Description copied from interface:EnumeratedValuesExtractorReturns the values stored at the given key.- Specified by:
getValuesin interfaceEnumeratedValuesExtractor- Parameters:
key- The key of the attribute.- Returns:
- The values of the attribute.
-
setValue
Description copied from interface:AddableSets a value for the given key.
-