public class EventFilterPayload extends Object implements EventFilterPayloadInterface, Serializable
EventFilterRule for payload matching| Modifier and Type | Class and Description |
|---|---|
static class |
EventFilterPayload.IntegerProperty
Properties match integers from various payload event types
|
static class |
EventFilterPayload.StringProperty
Properties match strings from various payload event types
|
| Constructor and Description |
|---|
EventFilterPayload()
Create new empty payload filter
|
EventFilterPayload(Class<? extends PayloadBase> ptype)
Create new payload filter that additionally verifies against the supplied payload class
|
public EventFilterPayload(Class<? extends PayloadBase> ptype)
ptype - Payload classpublic EventFilterPayload()
public Boolean matches(Event e)
matches in interface EventFilterPayloadInterfacee - Input eventpublic EventFilterPayload withStringRegexMatch(EventFilterPayload.StringProperty property, String s) throws PatternSyntaxException
property - EventFilterPayload.StringPropertys - String regex pattern to match againstPatternSyntaxExceptionpublic void setStringRegexMatchers(Map<EventFilterPayload.StringProperty,String> stringRegexMatchers)
Patterns are compiled immediately upon invocation of the method.
stringRegexMatchers - Map of key/value pairspublic Map<EventFilterPayload.StringProperty,String> getStringRegexMatchers()
public EventFilterPayload withStringMatch(EventFilterPayload.StringProperty property, String s)
property - EventFilterPayload.StringPropertys - String to match againstpublic void setStringMatchers(Map<EventFilterPayload.StringProperty,String> stringMatchers)
stringMatchers - Map of key/value pairspublic Map<EventFilterPayload.StringProperty,String> getStringMatchers()
public EventFilterPayload withIntegerMatch(EventFilterPayload.IntegerProperty property, Integer i)
property - EventFilterPayload.IntegerPropertyi - Integer to match againstpublic void setIntegerMatchers(Map<EventFilterPayload.IntegerProperty,Integer> integerMatchers)
integerMatchers - Map of key/value pairspublic Map<EventFilterPayload.IntegerProperty,Integer> getIntegerMatchers()
public EventFilterPayload withIntegerRangeMatch(EventFilterPayload.IntegerProperty property, int low, int high)
Will match if the property value falls between low and high inclusively.
property - EventFilterPayload.IntegerPropertylow - Low value for range matchhigh - High value for range matchpublic void setIntegerRangeMatchers(Map<EventFilterPayload.IntegerProperty,EventFilterPayloadRange<Integer>> integerRangeMatchers)
integerRangeMatchers - Map of key/value pairspublic Map<EventFilterPayload.IntegerProperty,EventFilterPayloadRange<Integer>> getIntegerRangeMatchers()
public void setPayloadType(String className)
className - Canonical name of class filter wantspublic String getPayloadType()
Copyright © 2022. All rights reserved.