java.lang.Objectcom.cyscape.browserhawk.RuleEngine
The RuleEngine class encapsulate rule logic to provide an easy way to ensure that each web site visitor meets your site's minimum browser and system requirements, and to provide automated self-help to those users who do not. See the "Rules Enforcement Technology" tutorial at http://cyscape.com for detailed information.
| Method Summary | |
ExtendedOptions |
getExtendedOptions()
Returns an instance of ExtendedOptions based on the requirements laid out in the XML rules file -- which extended properties to test, which ports and fonts to test, what page message to use, etc. |
static RuleEngine |
getFromFile(java.lang.String filename)
Returns a RuleEngine instance from the given XML file. |
static RuleEngine |
getFromString(java.lang.String contents)
Returns a RuleEngine instance from the given XML string. |
java.lang.String |
getHtmlResult(BrowserInfo info,
ExtendedBrowserInfo einfo,
javax.servlet.http.HttpServletRequest req)
Returns an HTML string holding the result of the rule execution. |
LogOptions |
getLogOptions()
Returns an instance of LogOptions based on the requirements laid out in the XML rules file -- such as which properties to log. |
RuleEngineResult |
getResult(BrowserInfo info,
ExtendedBrowserInfo einfo,
javax.servlet.http.HttpServletRequest req)
Returns a RuleEngineResult holding the result of the rule execution. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static RuleEngine getFromFile(java.lang.String filename)
throws java.io.IOException
Requires BrowserHawk Enterprise Edition.
filename - Name of the XML file to load rules from
java.io.IOException - Should there be trouble locating or reading the filegetFromString(String)public static RuleEngine getFromString(java.lang.String contents)
Requires BrowserHawk Enterprise Edition.
contents - An XML string to load rules from
getFromFile(String)public ExtendedOptions getExtendedOptions()
public LogOptions getLogOptions()
public java.lang.String getHtmlResult(BrowserInfo info,
ExtendedBrowserInfo einfo,
javax.servlet.http.HttpServletRequest req)
info - The BrowserInfo instance for the current clienteinfo - The ExtendedBrowserInfo instance for the current clientreq - The request object
getResult(BrowserInfo, ExtendedBrowserInfo, javax.servlet.http.HttpServletRequest)
public RuleEngineResult getResult(BrowserInfo info,
ExtendedBrowserInfo einfo,
javax.servlet.http.HttpServletRequest req)
info - The BrowserInfo instance for the current clienteinfo - The ExtendedBrowserInfo instance for the current clientreq - The request object
getHtmlResult(BrowserInfo, ExtendedBrowserInfo, javax.servlet.http.HttpServletRequest)