- All Implemented Interfaces:
- AppRouterCondition
public class HeaderRegexCondition
extends Object
implements AppRouterCondition
Simple implementation that uses a regex against a predefined SIP header.
The regular expression comes from the RouterInfo, and have been previously precompiled for performance.
Several regex may be defined against different headers.
The condition returns true if all the regular expressions match the proper header.
This fixes https://github.com/Mobicents/sip-servlets/issues/5