Interface Servlets.ClientIdentifier

Enclosing class:
Servlets

public static interface Servlets.ClientIdentifier
A plugin used to provide additional browser information for Servlets.getBrowser(jakarta.servlet.ServletRequest, java.lang.String).
Since:
6.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the browser.
    double
    Returns the version of the browser.
    matches(String userAgent)
    Returns the information of the client if userAgent matches this client, or null if not matched.
  • Method Details

    • matches

      Servlets.ClientIdentifier matches(String userAgent)
      Returns the information of the client if userAgent matches this client, or null if not matched.
      Parameters:
      userAgent - represents a client.
    • getName

      String getName()
      Returns the name of the browser. It is called only against the instance returned by matches(java.lang.String).
    • getVersion

      double getVersion()
      Returns the version of the browser. It is called only against the instance returned by matches(java.lang.String).