org.polliwog.filters
Class IPAddressRule

java.lang.Object
  extended by org.polliwog.filters.Rule
      extended by org.polliwog.filters.IPAddressRule
All Implemented Interfaces:
com.gentlyweb.xml.JDOMXmlOutputter

public class IPAddressRule
extends Rule

This class currently doesn't work because one of the octets from the InetAddress.getAddress insists on being -127... grr... So for now don't use a ipaddr rule... The logic is correct but it's not right... also, the performance will be pretty poor having to do this over every line...


Field Summary
 
Fields inherited from class org.polliwog.filters.Rule
ACCEPT, ACCEPT_NAME, DATE, IP_ADDR, JOSQL, REJECT, REJECT_NAME, URL
 
Constructor Summary
IPAddressRule(org.jdom.Element root)
           
 
Method Summary
 boolean match(Hit h)
           
 boolean match(Visit v)
           
 java.lang.String toString()
           
 
Methods inherited from class org.polliwog.filters.Rule
accept, accept, getAsJDOMElement, getRule, isAutoGenerated, setAction, setAutoGenerated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPAddressRule

public IPAddressRule(org.jdom.Element root)
              throws org.jdom.JDOMException
Throws:
org.jdom.JDOMException
Method Detail

toString

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

match

public boolean match(Visit v)
              throws WeblogException
Specified by:
match in class Rule
Throws:
WeblogException

match

public boolean match(Hit h)
              throws WeblogException
Specified by:
match in class Rule
Throws:
WeblogException


  Copyright © 2007 Gary Bentley. All Rights Reserved.