Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static Inet4Address |
BLOCKED_VALUE |
org.slf4j.Logger |
log |
static String[] |
PROPERTY_NAMES
These properties can be overwritten using system properties (command
line)
|
static String |
RBL_ADDRESS |
static String |
RBL_ADMIN_PORT |
static String |
RBL_DOMAIN |
static String |
RBL_FILE |
static String |
RBL_HOME |
static String |
RBL_PERMISSIONS |
static String |
RBL_PORT |
static String |
VERSION |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
RblServer(InetAddress addr,
Integer port)
This method creates a new RBL server listening at the specified address
on the given port.
|
RblServer(Properties p)
Create a new RblServer with the provided set of properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
block(String address,
Integer ttl) |
RBList |
getBlockList() |
String |
getDomain() |
RblSecurityManager |
getRblSecurityManager() |
static void |
main(String[] args)
This is the server's main entry point.
|
void |
run() |
void |
setBlockList(RBList list)
Sets the block list for this server.
|
void |
setRblSecurityManager(RblSecurityManager manager) |
void |
shutdown()
This method is called upon server shutdown, e.g. by the VM's
ShutdownHook.
|
void |
unblock(String address) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final String RBL_HOME
public static final String RBL_PORT
public static final String RBL_ADDRESS
public static final String RBL_ADMIN_PORT
public static final String RBL_FILE
public static final String RBL_DOMAIN
public static final String RBL_PERMISSIONS
public static final String[] PROPERTY_NAMES
public static Inet4Address BLOCKED_VALUE
public static final String VERSION
public org.slf4j.Logger log
public RblServer(Properties p) throws Exception
p - Exceptionpublic RblServer(InetAddress addr, Integer port) throws Exception
addr - port - Exceptionpublic void setRblSecurityManager(RblSecurityManager manager)
public RblSecurityManager getRblSecurityManager()
public void setBlockList(RBList list)
list - public RBList getBlockList()
public String getDomain()
public void unblock(String address)
public void run()
run in interface Runnablerun in class ThreadThread.run()public void shutdown()
public static void main(String[] args) throws Exception
This is the server's main entry point. It will read the configuration
from ${RBL_HOME}/etc/jwall-rbld.conf if that file exists or
from a configuration file specified as first argument at the command
line.
args - ExceptionCopyright © 2013. All Rights Reserved.