org.zkoss.web.servlet
Interface Servlets.BrowserIdentifier

Enclosing class:
Servlets

public static interface Servlets.BrowserIdentifier

A plugin used to assist isBrowser(java.lang.String, java.lang.String) to identify if a client is the given type.

Since:
5.0.0
See Also:
Servlets.setBrowserIdentifier(org.zkoss.web.servlet.Servlets.BrowserIdentifier)

Method Summary
 boolean isBrowser(java.lang.String userAgent, java.lang.String type)
          Tests if a client is the givent type.
 

Method Detail

isBrowser

boolean isBrowser(java.lang.String userAgent,
                  java.lang.String type)
Tests if a client is the givent type.

Parameters:
userAgent - represents a client.
type - the type of the browser.
Returns:
true if it matches, false if unable to identify


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo