Class RuleValidator
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.validation.RuleValidator
-
public class RuleValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RuleValidator(FilterService filterService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(Rule rule)
protected static void
validateIpAddress(java.lang.String errorContext, java.lang.String ipAddressValue)
protected static void
validateName(java.lang.String name)
protected static void
validatePort(java.lang.String errorContext, java.lang.String port)
protected static void
validateProtocol(java.lang.String protocol)
-
-
-
Constructor Detail
-
RuleValidator
public RuleValidator(FilterService filterService)
-
-
Method Detail
-
validate
public void validate(Rule rule) throws InvalidRuleException
- Throws:
InvalidRuleException
-
validateName
protected static void validateName(java.lang.String name)
-
validateProtocol
protected static void validateProtocol(java.lang.String protocol) throws InvalidRuleException
- Throws:
InvalidRuleException
-
validatePort
protected static void validatePort(java.lang.String errorContext, java.lang.String port) throws InvalidRuleException
- Throws:
InvalidRuleException
-
validateIpAddress
protected static void validateIpAddress(java.lang.String errorContext, java.lang.String ipAddressValue) throws InvalidRuleException
- Throws:
InvalidRuleException
-
-