com.itmill.toolkit.terminal.web
Class Theme.AgentRequirement
java.lang.Object
com.itmill.toolkit.terminal.web.Theme.AgentRequirement
- All Implemented Interfaces:
- Theme.Requirement
- Enclosing class:
- Theme
public class Theme.AgentRequirement
- extends Object
- implements Theme.Requirement
HTTP user agent requirement This requirements is used to ensure that the
User-Agent string provided in HTTP request headers contains given
substring.
- Since:
- 3.0
- Version:
- 4.1.4
- Author:
- IT Mill Ltd.
Theme.AgentRequirement
public Theme.AgentRequirement(String agentSubString)
- Parameters:
agentSubString -
isMet
public boolean isMet(WebBrowser terminal)
- Checks that this requirement is met by given type of browser.
- Specified by:
isMet in interface Theme.Requirement
- Parameters:
terminal - the type of the web browser.
- Returns:
true if terminal is compatible with this
rule,otherwise false.- See Also:
Theme.Requirement.isMet(com.itmill.toolkit.terminal.web.WebBrowser)
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.