public class SURBL
extends java.lang.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(java.lang.String storeDirName)
Create SURBL with specified directory for cache files
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSURBL(java.lang.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 java.io.IOException
java.io.tmpdir)java.io.IOExceptionpublic SURBL(java.lang.String storeDirName)
throws java.io.IOException
storeDirName - directory for cache filesjava.io.IOExceptionpublic SURBL setConnectionTimeout(int connectionTimeout)
connectionTimeout - millispublic SURBL setReadTimeout(int readTimeout)
readTimeout - millispublic boolean load()
throws java.io.IOException
java.io.IOExceptionpublic boolean checkSURBL(java.lang.String hostname)
throws java.net.MalformedURLException
hostname - to check in SURBLjava.net.UnknownHostException - if domain dont existjava.net.MalformedURLException - if url is malformedCopyright © 2015. All Rights Reserved.