Class ParseSecChUaPlatformVersion
java.lang.Object
nl.basjes.parse.useragent.clienthints.parsers.ParseSecChUaPlatformVersion
- All Implemented Interfaces:
Serializable
,CHParser
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface nl.basjes.parse.useragent.clienthints.parsers.CHParser
SF_STRING_PATTERN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWhat Client Hint can this parser do something with?Parses the provided Client Hints request Headers and updates the provided ClientHints instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.basjes.parse.useragent.clienthints.parsers.CHParser
clearCache, initializeCache, parseBoolean, parseSfString
-
Field Details
-
HEADER_FIELD
- See Also:
-
HEADER_SPEC_URL
- See Also:
-
HEADER_SPEC
- See Also:
-
FIELD_NAME
- See Also:
-
-
Constructor Details
-
ParseSecChUaPlatformVersion
public ParseSecChUaPlatformVersion()
-
-
Method Details
-
parse
@Nonnull public ClientHints parse(@Nonnull Map<String, String> clientHintsHeaders, @Nonnull ClientHints clientHints, @Nonnull String headerName) Description copied from interface:CHParser
Parses the provided Client Hints request Headers and updates the provided ClientHints instance- Specified by:
parse
in interfaceCHParser
- Parameters:
clientHintsHeaders
- The map of request headers that at least contains one of the supported fieldsclientHints
- The instance that is to be updatedheaderName
- The actual name of the header (must do case-insensitive compare!)- Returns:
- The same instance as the provided clientHints parameter.
-
inputField
Description copied from interface:CHParser
What Client Hint can this parser do something with?- Specified by:
inputField
in interfaceCHParser
- Returns:
- The nonnull header name this parser can handle.
-
getHeaderSpecification
-