- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for isValidFileProtocol (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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.Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 13:59:25 GMT 2026 - 12.4K bytes - Click Count (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"));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 35.1K bytes - Click Count (0) -
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;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 25K bytes - Click Count (0)