org.apache.james.util
Class NetMatcher

java.lang.Object
  extended by org.apache.james.util.NetMatcher

public class NetMatcher
extends java.lang.Object


Constructor Summary
NetMatcher()
           
NetMatcher(java.util.Collection nets)
           
NetMatcher(java.lang.String[] nets)
           
 
Method Summary
 void initInetNetworks(java.util.Collection nets)
           
 void initInetNetworks(java.lang.String[] nets)
           
protected  void log(java.lang.String s)
           
 boolean matchInetNetwork(java.net.InetAddress ip)
           
 boolean matchInetNetwork(java.lang.String hostIP)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetMatcher

public NetMatcher()

NetMatcher

public NetMatcher(java.lang.String[] nets)

NetMatcher

public NetMatcher(java.util.Collection nets)
Method Detail

initInetNetworks

public void initInetNetworks(java.util.Collection nets)

initInetNetworks

public void initInetNetworks(java.lang.String[] nets)

matchInetNetwork

public boolean matchInetNetwork(java.lang.String hostIP)

matchInetNetwork

public boolean matchInetNetwork(java.net.InetAddress ip)

toString

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

log

protected void log(java.lang.String s)


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.