Class ParseSecChUaPlatformVersion

java.lang.Object
nl.basjes.parse.useragent.clienthints.parsers.ParseSecChUaPlatformVersion
All Implemented Interfaces:
Serializable, CHParser

public class ParseSecChUaPlatformVersion extends Object implements CHParser
See Also:
  • Field Details

  • 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 interface CHParser
      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.
    • inputField

      @Nonnull public String inputField()
      Description copied from interface: CHParser
      What Client Hint can this parser do something with?
      Specified by:
      inputField in interface CHParser
      Returns:
      The nonnull header name this parser can handle.
    • getHeaderSpecification

      public static AbstractUserAgentAnalyzerDirect.HeaderSpecification getHeaderSpecification()