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(javax.servlet.ServletRequest, java.lang.String).

Since:
6.0.0
See Also:
Servlets.setClientIdentifier(org.zkoss.web.servlet.Servlets.ClientIdentifier)

Method Summary
 String getName()
          Returns the name of the browser.
 double getVersion()
          Returns the version of the browser.
 Servlets.ClientIdentifier matches(String userAgent)
          Returns the information of the client if userAgent matches this client, or null if not matched.
 

Method Detail

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).



Copyright © 2015. All rights reserved.