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
 java.lang.String getName()
          Returns the name of the browser.
 double getVersion()
          Returns the version of the browser.
 Servlets.ClientIdentifier matches(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 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 © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo