Package org.zkoss.web.servlet
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 TypeMethodDescriptiongetName()Returns the name of the browser.doubleReturns the version of the browser.Returns the information of the client if userAgent matches this client, or null if not matched.
-
Method Details
-
matches
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 bymatches(java.lang.String). -
getVersion
double getVersion()Returns the version of the browser. It is called only against the instance returned bymatches(java.lang.String).
-