Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isValidWebProtocol (0.06 sec)

  1. src/main/java/org/codelibs/fess/helper/ProtocolHelper.java

         * Checks if the given URL uses a valid web protocol.
         *
         * @param url the URL to validate
         * @return true if the URL starts with a supported web protocol, false otherwise
         */
        public boolean isValidWebProtocol(final String url) {
            return stream(webProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s)));
        }
    
        /**
         * Checks if the given URL uses a valid file protocol.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Dec 12 13:58:40 UTC 2025
    - 12.4K bytes
    - Viewed (1)
  2. src/main/java/org/codelibs/fess/helper/WebFsIndexHelper.java

                // set urls
                split(urlsStr, "[\r\n]").of(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).distinct().forEach(urlValue -> {
                    if (!urlValue.startsWith("#") && protocolHelper.isValidWebProtocol(urlValue)) {
                        final String u = duplicateHostHelper.convert(urlValue);
                        crawler.addUrl(u);
                        if (logger.isInfoEnabled()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 25K bytes
    - Viewed (0)
Back to top