Package org.codelibs.fess.validation
Class UriTypeValidator
java.lang.Object
org.codelibs.fess.validation.UriTypeValidator
public class UriTypeValidator
extends Object
implements jakarta.validation.ConstraintValidator<UriType,String>
Validator implementation for URI type constraints.
This validator checks URI strings against specified protocol types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of supported protocol types for URI validation. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UriTypeValidator
public UriTypeValidator()Default constructor for UriTypeValidator.
-
-
Method Details
-
initialize
-
isValid
-
check
Checks if the given value matches any of the specified protocols.- Parameters:
protocols- the allowed protocolsvalue- the URI string to validate- Returns:
- true if the value matches allowed protocols, false otherwise
-