dnsbl4j is a Java Framework implementation for DNSBL querying.
RBLChecker uses Fluent Interface pattern to make configuration more clean.
public void someMethod() {
RBLChecker rblChecker = RBLChecker.newInstance()
.withSource(new ZENSpamhaus())
.withSource(new Spamcop())
;
List<RBLError> errors = rblChecker.check("8.8.8.8");
/*
Do some stuff with the errors
*/
}
Currently we have 2 well known providers implemented to simplify usage
- XML Configuration
Apache V2.0