javax.management
public class NotificationFilterSupport extends Object implements NotificationFilter
type.*
will
match only notifications with a type beginning with
code>type.*, not type.
as
expected.
Since: 1.5
Method Summary | |
---|---|
void | disableAllTypes()
Blocks all types by emptying the list of enabled attributes. |
void | disableType(String prefix)
Removes the specified type prefix from the list
of enabled types, thus preventing matching types
from passing through the filter. |
void | enableType(String prefix)
Adds the specified type prefix to the list
of enabled types, thus allowing
types starting with this string to pass through
the filter. |
Vector<String> | getEnabledTypes()
Returns the list of enabled types for this
filter.
|
boolean | isNotificationEnabled(Notification notif)
Returns true if the type of the specified notification
begins with one of the enabled type prefixes.
|
Parameters: prefix the prefix to disable.
Parameters: prefix the prefix to enable.
Throws: IllegalArgumentException if prefix
is null
.
Returns: the list of enabled types.
Parameters: notif the notification being filtered.
Returns: true if the notification's type is enabled.