-
-
Method Summary
default void
default void
What Client Hint can this parser do something with?
Parses the provided Client Hints request Headers and updates the provided ClientHints instance
Determines if the provided value is a sf-boolean.
A sf-string is a String with '"' around it.
-
Field Details
-
SF_STRING_PATTERN
static final Pattern SF_STRING_PATTERN
-
Method Details
-
parse
Parses the provided Client Hints request Headers and updates the provided ClientHints instance
- Parameters:
clientHintsHeaders
- The map of request headers that at least contains one of the supported fields
clientHints
- The instance that is to be updated
headerName
- The actual name of the header (must do case-insensitive compare!)
- Returns:
- The same instance as the provided clientHints parameter.
-
-
parseBoolean
Determines if the provided value is a sf-boolean.
- Parameters:
value
- The value to be parsed
- Returns:
- True/False or null if this was NOT a boolean.
-
parseSfString
A sf-string is a String with '"' around it.
- Parameters:
value
- The value to be parsed
- Returns:
- The actual payload string (i.e. without the surrounding '"') or null if invalid
-
-
clearCache
default void clearCache()