Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for UriTypeValidator (0.12 seconds)

  1. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

    /**
     * Validator implementation for URI type constraints.
     * This validator checks URI strings against specified protocol types.
     */
    public class UriTypeValidator implements ConstraintValidator<UriType, String> {
    
        /**
         * Default constructor for UriTypeValidator.
         */
        public UriTypeValidator() {
            // Default constructor
        }
    
        private String[] protocols;
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            final Constraint constraint = UriType.class.getAnnotation(Constraint.class);
            assertNotNull(constraint, "Constraint annotation should be present");
            assertEquals("Validator class should be UriTypeValidator", UriTypeValidator.class, constraint.validatedBy()[0]);
            assertEquals("Should have exactly one validator", 1, constraint.validatedBy().length);
        }
    
        // Test default values
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/validation/UriTypeValidatorTest.java

            assertTrue(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "http://www.foo.com/\nhttp://www.bar.com/";
            assertTrue(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "http://www.foo.com/ \r\nhttp://www.bar.com/";
            assertTrue(UriTypeValidator.check(protocols, values));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 3.2K bytes
    - Click Count (0)
Back to Top