- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isValidFileProtocol (0.14 sec)
-
src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java
assertEquals("file:", protocolHelper.getFileProtocols()[0]); assertEquals("smb:", protocolHelper.getFileProtocols()[1]); assertFalse(protocolHelper.isValidFileProtocol("smbx://test")); protocolHelper.addFileProtocol("smbx"); assertEquals(2, protocolHelper.getWebProtocols().length); assertEquals("http:", protocolHelper.getWebProtocols()[0]);
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Tue Jun 18 00:44:11 UTC 2024 - 4.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
} public boolean isValidWebProtocol(final String url) { return stream(webProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s))); } public boolean isValidFileProtocol(final String url) { return stream(fileProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s))); } public void addWebProtocol(final String protocol) {
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Wed Jun 19 01:34:15 UTC 2024 - 7.4K bytes - Viewed (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;
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 22.6K bytes - Viewed (1)