Methods Summary |
---|
public void | addRange(IPRange range)Adds a range. Only ranges created with "create" above can be added
|
public void | ban(java.lang.String IPAddress, java.lang.String text)Explicitly bans an address
|
public void | block(java.lang.String IPAddress)Explicitly blocks an address
|
public IPRange | createAndAddRange(java.lang.String description, java.lang.String start_ip, java.lang.String end_ip, boolean this_session_only)Creates, validates and adds a range
|
public IPRange | createRange(boolean this_session_only)creates a new range but *doesn't* add it to the list. Use the add method
to add it
|
public IPBanned[] | getBannedIPs()Gets the current list of b addresses
|
public IPBlocked[] | getBlockedIPs()Gets the current list of blocked addresses
|
public java.io.File | getFile()Gets the file name used for persistent ranges
|
public boolean | getInRangeAddressesAreAllowed()The filter either allows defined ranges to be allowed or denied access
|
public long | getLastUpdateTime()Gets the last time the filter set was updated or marked as up to date
|
public int | getNumberOfBannedIPs()returns length of banned ip list
|
public int | getNumberOfBlockedIPs()returns length of blocked ip list
|
public int | getNumberOfRanges()returns length of ranges list
|
public IPRange[] | getRanges()Gets the current set of defined IP ranges
|
public boolean | isEnabled()Test if ipfilter is enabled or not
|
public boolean | isInRange(java.lang.String IPAddress)Checks an address to see if its in an allowed range
|
public void | markAsUpToDate()Marks the IPFilter set as being uptodate
|
public void | reload()Reloads the ip filter from the config file (obtainable using "getFile")
|
public void | removeRange(IPRange range)Remove a range
|
public void | save()saves current setting to file given by getFile
|
public void | setEnabled(boolean enabled)change the enabled status
|
public void | setInRangeAddressesAreAllowed(boolean b)Set the behaviour of the filter to either allow or deny access for defined ranges
|
public void | unban(java.lang.String IPAddress)Removes a ban on an address
|