public class FilterAction extends AbstractManagerAction
This command requires the user has read access to specific events(manager.conf) and system permission because it can be used to create filters that may bypass filters defined in manager.conf
There are 2 Types of filters: Blacklist: The event you no longer want to receive. It starts with an exclamation. eg. "!RTCPReceived". Whitelist: The event you are interested in receiving. eg. "RTCPReceived".
Regular expressions can be used for the filters.
Evaluation of the filters is as follows: If no filters are configured all events are reported as normal. If there are white filters only: Then it is implied that all events are black listed and only the specified white filter events are returned. If there are black filters only: Then it is implied that all events are white listed and only the specified black filter events are removed. If there are both white and black filters: Then it is implied that all events are black listed and only the specified white filter events are returned, and then specific blacklisted events are further removed. (Limited use cases)
| Constructor and Description |
|---|
FilterAction()
Creates a new FilterAction.
|
FilterAction(String filter)
Creates a new FilterAction with the filter specified
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getFilter()
Returns the filter.
|
String |
getOperation()
Returns the filter operation which is "Add" by default.
|
void |
setFilter(String filter)
Sets the filter.
|
getActionId, setActionId, toStringpublic FilterAction()
public FilterAction(String filter)
filter - the whitelist or blacklist filter to be added.public String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getOperation()
public String getFilter()
public void setFilter(String filter)
filter - add the whitelist or blacklist event to be filtered.Copyright © 2004–2022. All rights reserved.