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.
|
protected static int |
parseSingleAddress(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 serverprotected static final int parseSingleAddress(java.lang.String str)
throws java.io.IOException
java.io.IOExceptionpublic static final boolean filterEnabled()
public static final ConnectionFilter getFilter()
@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.