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)
isBrowser
boolean isBrowser(String userAgent,
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 © 2012. All Rights Reserved.