Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isValidFileProtocol (0.08 sec)

  1. src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java

            assertFalse(protocolHelper.isValidFileProtocol("http://example.com"));
            assertFalse(protocolHelper.isValidFileProtocol("https://example.com"));
            assertFalse(protocolHelper.isValidFileProtocol("ftp://example.com"));
            assertFalse(protocolHelper.isValidFileProtocol("ldap://example.com"));
            assertFalse(protocolHelper.isValidFileProtocol("example.com"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

         *
         * @param url the URL to validate
         * @return true if the URL starts with a supported file protocol, false otherwise
         */
        public boolean isValidFileProtocol(final String url) {
            return stream(fileProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s)));
        }
    
        /**
         * Adds a new web protocol to the supported protocols list.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (1)
  3. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

                    if (!urlValue.startsWith("#")) {
                        final String u;
                        if (!protocolHelper.isValidFileProtocol(urlValue)) {
                            if (urlValue.startsWith("/")) {
                                u = "file:" + urlValue;
                            } else {
                                u = "file:/" + urlValue;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top