Package org.zkoss.web.servlet
Interface Servlets.ClientIdentifier
-
- Enclosing class:
- Servlets
public static interface Servlets.ClientIdentifierA plugin used to provide additional browser information forServlets.getBrowser(javax.servlet.ServletRequest, java.lang.String).- Since:
- 6.0.0
- See Also:
Servlets.setClientIdentifier(org.zkoss.web.servlet.Servlets.ClientIdentifier)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of the browser.doublegetVersion()Returns the version of the browser.Servlets.ClientIdentifiermatches(java.lang.String userAgent)Returns the information of the client if userAgent matches this client, or null if not matched.
-
-
-
Method Detail
-
matches
Servlets.ClientIdentifier matches(java.lang.String userAgent)
Returns the information of the client if userAgent matches this client, or null if not matched.- Parameters:
userAgent- represents a client.
-
getName
java.lang.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).
-
-