java.util.EventListener, ConnectionFilter, ConnectionFilterRulesListenerpublic class ConnectionFilterImpl extends java.lang.Object implements ConnectionFilter, ConnectionFilterRulesListener
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(ConnectionEvent evt) |
Filters a client connection event.
|
void |
checkRules(java.lang.String[] filterList) |
Check the current rules.
|
protected void |
checkRules(java.lang.String[] filterList,
java.util.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.
|
static boolean |
isIgnoreFilterRuleErrorsEnabled() |
Check whether connection filter rule errors can be ignored for this server, if any.
|
protected static int |
parseSingleAddress(java.lang.String str) |
Deprecated.
12.2.1.5.0
|
protected static java.math.BigInteger |
parseSingleAddressBig(java.lang.String str) |
|
static void |
setFilter(ConnectionFilter filter) |
Deprecated.
|
void |
setRules(java.lang.String[] filterList) |
Set and check the current rules.
|
public void checkRules(java.lang.String[] filterList)
throws java.text.ParseException
checkRules in interface ConnectionFilterRulesListenerfilterList - list of filter rules.java.text.ParseException - a problem occurred while reading the rules.protected void checkRules(java.lang.String[] filterList,
java.util.Vector entries)
throws java.text.ParseException
java.text.ParseExceptionpublic void setRules(java.lang.String[] filterList)
throws java.text.ParseException
setRules in interface ConnectionFilterRulesListenerfilterList - list of filter rules.java.text.ParseException - a problem occurred while reading the rules.public void accept(ConnectionEvent evt) throws FilterException
accept in interface ConnectionFilterevt - the connection eventFilterException - the connection should be rejected by
the server@Deprecated
protected static final int parseSingleAddress(java.lang.String str)
throws java.io.IOException
java.io.IOExceptionprotected static final java.math.BigInteger parseSingleAddressBig(java.lang.String str)
throws java.io.IOException
java.io.IOExceptionpublic static final boolean filterEnabled()
public static final ConnectionFilter getFilter()
public static final boolean isIgnoreFilterRuleErrorsEnabled()
@Deprecated 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.