public class BrokerFilter
extends java.lang.Object
Constructor and Description |
---|
BrokerFilter(BrokerClient client,
java.lang.String event_type_name,
java.lang.String filter_string)
Create the filter.
|
BrokerFilter(BrokerClient client,
java.lang.String event_type_name,
java.lang.String filter_string,
java.util.Locale locale)
Create the filter in the given locale.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventTypeName()
Get the event type name.
|
java.lang.String |
getFilterString()
Get the filter string.
|
boolean |
match(BrokerEvent event)
Check if the given event matches the filter.
|
java.lang.String |
toString()
Get the filter as a string.
|
public BrokerFilter(BrokerClient client, java.lang.String event_type_name, java.lang.String filter_string) throws BrokerException
BrokerFilterParseException
- If there is a parse error in the filter string.BrokerNullParameterException
- If client or event_type_name are null.BrokerException
public BrokerFilter(BrokerClient client, java.lang.String event_type_name, java.lang.String filter_string, java.util.Locale locale) throws BrokerException
BrokerFilterParseException
- If there is a parse error in the filter string.BrokerNullParameterException
- If client or event_type_name are null.BrokerException
public java.lang.String getEventTypeName()
public java.lang.String getFilterString()
public boolean match(BrokerEvent event) throws BrokerException
BrokerFilterRuntimeException
- If there is a error while evaluating the filter.BrokerNullParameterException
- If event is null.BrokerException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2006 webMethods, Inc. Copyright © 2007-2021 Software AG Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.