org.polliwog.filters
Class Rule
java.lang.Object
org.polliwog.filters.Rule
- All Implemented Interfaces:
- com.gentlyweb.xml.JDOMXmlOutputter
- Direct Known Subclasses:
- DateRule, IPAddressRule, JoSQLRule, URLRule
public abstract class Rule
- extends java.lang.Object
- implements com.gentlyweb.xml.JDOMXmlOutputter
Constructor Summary |
Rule(org.jdom.Element root)
|
Rule(java.lang.String type)
Create a blank rule. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REJECT
public static final int REJECT
- See Also:
- Constant Field Values
ACCEPT
public static final int ACCEPT
- See Also:
- Constant Field Values
REJECT_NAME
public static final java.lang.String REJECT_NAME
- See Also:
- Constant Field Values
ACCEPT_NAME
public static final java.lang.String ACCEPT_NAME
- See Also:
- Constant Field Values
URL
public static final java.lang.String URL
- See Also:
- Constant Field Values
DATE
public static final java.lang.String DATE
- See Also:
- Constant Field Values
IP_ADDR
public static final java.lang.String IP_ADDR
- See Also:
- Constant Field Values
JOSQL
public static final java.lang.String JOSQL
- See Also:
- Constant Field Values
Rule
public Rule(java.lang.String type)
- Create a blank rule.
Rule
public Rule(org.jdom.Element root)
throws org.jdom.JDOMException
- Throws:
org.jdom.JDOMException
getRule
public static Rule getRule(org.jdom.Element root,
java.lang.Class cl)
throws org.jdom.JDOMException,
WeblogException
- Throws:
org.jdom.JDOMException
WeblogException
setAutoGenerated
public void setAutoGenerated(boolean b)
isAutoGenerated
public boolean isAutoGenerated()
setAction
public void setAction(java.lang.String a)
getAsJDOMElement
public org.jdom.Element getAsJDOMElement()
- Specified by:
getAsJDOMElement
in interface com.gentlyweb.xml.JDOMXmlOutputter
match
public abstract boolean match(Hit h)
throws WeblogException
- Throws:
WeblogException
match
public abstract boolean match(Visit v)
throws WeblogException
- Throws:
WeblogException
accept
public boolean accept(Hit h)
throws WeblogException
- Throws:
WeblogException
accept
public boolean accept(Visit v)
throws WeblogException
- Throws:
WeblogException
Copyright © 2007 Gary Bentley. All Rights Reserved.