public class SURBL extends Object
References:
surbl - redirection-sites
surbl - guidelines
List of RBL
RFC5782 - DNS Blacklists and Whitelists
| Constructor and Description |
|---|
SURBL()
Create SURBL with default directory for cache file (
java.io.tmpdir) |
SURBL(String storeDirName)
Create SURBL with specified directory for cache files
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSURBL(String hostname)
Check if hostname is in SURBL
|
boolean |
load()
Load TLDs tables of two level and three level.
|
SURBL |
setConnectionTimeout(int connectionTimeout)
Set connection timeout
|
SURBL |
setReadTimeout(int readTimeout)
Set read timeout
|
public SURBL()
throws IOException
java.io.tmpdir)IOExceptionpublic SURBL(String storeDirName) throws IOException
storeDirName - directory for cache filesIOExceptionpublic SURBL setConnectionTimeout(int connectionTimeout)
connectionTimeout - millispublic SURBL setReadTimeout(int readTimeout)
readTimeout - millispublic boolean load()
throws IOException
IOExceptionpublic boolean checkSURBL(String hostname) throws MalformedURLException
hostname - to check in SURBLUnknownHostException - if domain dont existMalformedURLException - if url is malformedCopyright © 2022. All rights reserved.