Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for protocol (0.19 sec)

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

                    boolean flag = false;
                    for (final String protocol : protocols) {
                        if (path.trim().startsWith(protocol.trim())) {
                            flag = true;
                            break;
                        }
                    }
                    if (!flag) {
                        return false;
                    }
                }
            }
            return true;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/validation/UriTypeValidatorTest.java

            protocols = new String[] { "http:" };
            values = "https://www.foo.com/\nhttps://www.bar.com/";
            assertFalse(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
            values = "https://www.foo.com/\n \nhttps://www.bar.com/";
            assertFalse(UriTypeValidator.check(protocols, values));
    
            protocols = new String[] { "http:" };
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top