org.gudy.azureus2.plugins.ipfilter
Interface IPRange

All Superinterfaces:
Comparable
All Known Implementing Classes:
IPRangeImpl, RPIPRange

public interface IPRange
extends Comparable

Author:
parg IPRange instances implement Comparable. Rules are identical start+end IPs

Method Summary
 void checkValid()
          For a range to be usable it has to be valid.
 void delete()
           
 String getDescription()
           
 String getEndIP()
           
 String getStartIP()
           
 boolean isInRange(String ipAddress)
           
 boolean isSessionOnly()
           
 boolean isValid()
           
 void setDescription(String str)
           
 void setEndIP(String str)
           
 void setSessionOnly(boolean sessionOnly)
           
 void setStartIP(String str)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDescription

String getDescription()

setDescription

void setDescription(String str)

checkValid

void checkValid()
For a range to be usable it has to be valid. To make it valid you have to call checkValid. Failure to do so will leave newly created ranges as invalid and therefore checks won't be made against it!!!!


isValid

boolean isValid()

isSessionOnly

boolean isSessionOnly()

getStartIP

String getStartIP()

setStartIP

void setStartIP(String str)

getEndIP

String getEndIP()

setEndIP

void setEndIP(String str)

setSessionOnly

void setSessionOnly(boolean sessionOnly)

isInRange

boolean isInRange(String ipAddress)

delete

void delete()