Class ParseSecChUaPlatformVersion
java.lang.Object
nl.basjes.parse.useragent.clienthints.parsers.ParseSecChUaPlatformVersion
- All Implemented Interfaces:
Serializable,CHParser
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface nl.basjes.parse.useragent.clienthints.parsers.CHParser
SF_STRING_PATTERN -
Constructor Summary
Constructors -
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, waitMethods 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:CHParserParses the provided Client Hints request Headers and updates the provided ClientHints instance- Specified by:
parsein 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:CHParserWhat Client Hint can this parser do something with?- Specified by:
inputFieldin interfaceCHParser- Returns:
- The nonnull header name this parser can handle.
-
getHeaderSpecification
-