org.polliwog.filters
Class Rule

java.lang.Object
  extended by 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


Nested Class Summary
 class Rule.XMLConstants
           
 
Field Summary
static int ACCEPT
           
static java.lang.String ACCEPT_NAME
           
static java.lang.String DATE
           
static java.lang.String IP_ADDR
           
static java.lang.String JOSQL
           
static int REJECT
           
static java.lang.String REJECT_NAME
           
static java.lang.String URL
           
 
Constructor Summary
Rule(org.jdom.Element root)
           
Rule(java.lang.String type)
          Create a blank rule.
 
Method Summary
 boolean accept(Hit h)
           
 boolean accept(Visit v)
           
 org.jdom.Element getAsJDOMElement()
           
static Rule getRule(org.jdom.Element root, java.lang.Class cl)
           
 boolean isAutoGenerated()
           
abstract  boolean match(Hit h)
           
abstract  boolean match(Visit v)
           
 void setAction(java.lang.String a)
           
 void setAutoGenerated(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.