- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for doHead (0.05 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.java
} try (final ResponseData responseData = storageClient.doHead("storage://fess/dir1/")) { assertNull(responseData); } try (final ResponseData responseData = storageClient.doHead("storage://fess/dir1/dir2/")) { assertNull(responseData); } try (final ResponseData responseData = storageClient.doHead("storage://fess/dir3/")) { assertNull(responseData); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java
} @Override public ResponseData execute(final RequestData request) { return switch (request.getMethod()) { case GET -> doGet(request.getUrl()); case HEAD -> doHead(request.getUrl()); case POST -> doPost(request.getUrl()); default -> throw new CrawlerSystemException(request.getMethod() + " method is not supported."); }; }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 5.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java
String path = file.getAbsolutePath(); if (!path.startsWith("/")) { path = "/" + path.replace('\\', '/'); } final ResponseData responseData = fsClient.doHead("file:" + path); assertNotNull(responseData.getLastModified()); assertTrue(responseData.getLastModified().getTime() < new Date().getTime()); assertNull(responseData.getResponseBody()); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java
throw new CrawlingAccessException(e); } return null; } }; client.setAccessTimeout(1); try { client.doHead("smb1://localhost/test.txt"); fail(); } catch (CrawlingAccessException e) { assertTrue(e.getCause() instanceof InterruptedException); } }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java
final CrawlerWebServer server = new CrawlerWebServer(7070); server.start(); final String url = "http://localhost:7070/"; try { final ResponseData responseData = httpClient.doHead(url); Thread.sleep(100); assertNotNull(responseData.getLastModified()); assertTrue(responseData.getLastModified().getTime() < new Date().getTime()); } finally {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu May 09 09:28:25 UTC 2024 - 8.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
this.charset = charset; } /* * (non-Javadoc) * * @see org.codelibs.fess.crawler.client.CrawlerClient#doHead(java.lang.String) */ @Override public ResponseData doHead(final String url) { try { final ResponseData responseData = processRequest(url, false); responseData.setMethod(Constants.HEAD_METHOD);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 11.8K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java
params.put(FtpClient.FTP_AUTHENTICATIONS_PROPERTY, new FtpAuthentication[] { auth }); ftpClient.setInitParameterMap(params); final ResponseData responseData = ftpClient.doHead("ftp://localhost:" + FTP_PORT + "/text1.txt"); assertNotNull(responseData.getLastModified()); assertTrue(responseData.getLastModified().getTime() < new Date().getTime());
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 16.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java
return responseData; } /* * (non-Javadoc) * * @see org.codelibs.fess.crawler.client.CrawlerClient#doHead(java.lang.String) */ public ResponseData doHead(final String url) { final long now = SystemUtil.currentTimeMillis(); if (now - previousTime < interval) { throw new IllegalStateException();
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 15.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
return charset; } /* * (non-Javadoc) * * @see org.codelibs.fess.crawler.client.CrawlerClient#doHead(java.lang.String) */ @Override public ResponseData doHead(final String url) { try { final ResponseData responseData = processRequest(url, false); responseData.setMethod(Constants.HEAD_METHOD);
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu May 23 01:54:36 UTC 2024 - 17.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java
throw new CrawlingAccessException(e); } return null; } }; client.setAccessTimeout(1); try { client.doHead("smb://localhost/test.txt"); fail(); } catch (CrawlingAccessException e) { assertTrue(e.getCause() instanceof InterruptedException); } }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.3K bytes - Viewed (0)