org.jwall.rbl.data
Interface RBList

All Known Implementing Classes:
RblFile

public interface RBList

This interface defines an abstract block list. Elements added to this list will be served (i.e. may result in blocking).

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 void add(RBListEntry entry)
          This method adds the given entry to the list.
 boolean contains(String name)
          Checks whether the given key (e.g.
 RBListEntry lookup(String name)
          Returns the entry for the given name.
 boolean remove(String name)
           
 List<RBListEntry> search(String query)
           
 void store()
           
 

Method Detail

lookup

RBListEntry lookup(String name)
Returns the entry for the given name.

Parameters:
name -
Returns:

contains

boolean contains(String name)
Checks whether the given key (e.g. IP address, hostname) is contained in this block list.

Parameters:
entry -
Returns:

add

void add(RBListEntry entry)
This method adds the given entry to the list. Queries for this element should immediately become effective.

Parameters:
entry -

search

List<RBListEntry> search(String query)

remove

boolean remove(String name)

store

void store()


Copyright © 2014. All Rights Reserved.