public class ConnectionFilterImpl extends Object implements ConnectionFilter, ConnectionFilterRulesListener
Modifier and Type | Method and Description |
---|---|
void |
accept(ConnectionEvent evt)
Filters a client connection event.
|
void |
checkRules(String[] filterList)
Check the current rules.
|
protected void |
checkRules(String[] filterList,
Vector entries) |
static boolean |
filterEnabled()
Indicate whether the connection filter is enabled in this server.
|
static ConnectionFilter |
getFilter()
Return the current server-wide connection filter in use, if any.
|
protected static int |
parseSingleAddress(String str) |
static void |
setFilter(ConnectionFilter filter)
Deprecated.
|
void |
setRules(String[] filterList)
Set and check the current rules.
|
public void checkRules(String[] filterList) throws ParseException
checkRules
in interface ConnectionFilterRulesListener
filterList
- list of filter rules.ParseException
- a problem occurred while reading the rules.protected void checkRules(String[] filterList, Vector entries) throws ParseException
ParseException
public void setRules(String[] filterList) throws ParseException
setRules
in interface ConnectionFilterRulesListener
filterList
- list of filter rules.ParseException
- a problem occurred while reading the rules.public void accept(ConnectionEvent evt) throws FilterException
accept
in interface ConnectionFilter
evt
- the connection eventFilterException
- the connection should be rejected by
the serverprotected static final int parseSingleAddress(String str) throws IOException
IOException
public static final boolean filterEnabled()
public static final ConnectionFilter getFilter()
public static final void setFilter(ConnectionFilter filter)
This method is deprecated. Use the ConnectionFilter attribute on the SecurityMBean instead. Any filter set through this method will not be reflected in the console.