org.millstone.webadapter
Class Theme.AgentRequirement

java.lang.Object
  |
  +--org.millstone.webadapter.Theme.AgentRequirement
All Implemented Interfaces:
Theme.Requirement
Enclosing class:
Theme

public class Theme.AgentRequirement
extends java.lang.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:
3.0.3
Author:
IT Mill Ltd.

Constructor Summary
Theme.AgentRequirement(java.lang.String agentSubString)
           
 
Method Summary
 boolean isMet(WebBrowser terminal)
          Check that this requirement is met by given type of browser.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Theme.AgentRequirement

public Theme.AgentRequirement(java.lang.String agentSubString)
Method Detail

isMet

public boolean isMet(WebBrowser terminal)
Description copied from interface: Theme.Requirement
Check that this requirement is met by given type of browser.

Specified by:
isMet in interface Theme.Requirement
Parameters:
terminal - type of the web browser.
Returns:
True if terminal is compatible with this rule. False otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.