- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 751 for asStream (0.37 sec)
- 
				
				src/test/java/org/codelibs/fess/helper/OsddHelperTest.javaosddHelper.setContentType("application/opensearchdescription+xml"); osddHelper.init(); assertFalse(osddHelper.hasOpenSearchFile()); try { osddHelper.asStream(); fail(); } catch (final Exception e) { assertEquals("Unsupported Open Search Description Document response.", e.getMessage()); } } Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 23.9K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java* * @param id the backup file ID to download * @return stream response containing the backup file data */ // GET /api/admin/backup/file/{id} @Execute public StreamResponse get$file(final String id) { final FessConfig fessConfig = ComponentUtil.getFessConfig(); if (stream(fessConfig.getIndexBackupAllTargets()).get(stream -> stream.anyMatch(s -> s.equals(id)))) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java@Execute @Secured({ ROLE, ROLE + VIEW }) public ActionResponse download(final String id) { if (stream(fessConfig.getIndexBackupAllTargets()).get(stream -> stream.anyMatch(s -> s.equals(id)))) { if ("system.properties".equals(id)) { return asStream(id).contentTypeOctetStream().stream(out -> { try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 29.8K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/osdd/OsddAction.java/** * Returns the OSDD document. * * @return the OSDD document as a stream response */ @Execute public ActionResponse index() { if (isLoginRequired()) { return redirectToLogin(); } return osddHelper.asStream(); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.2K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/api/admin/log/ApiAdminLogAction.javaif (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) { final Path path = Paths.get(logFilePath, filename); return asStream(filename).contentTypeOctetStream().stream(out -> { try (InputStream in = Files.newInputStream(path)) { out.write(in); } }); } Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.4K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/helper/OsddHelper.java*/ public boolean hasOpenSearchFile() { return osddFile != null; } /** * Returns the OSDD as a stream response. * * @return the stream response */ public StreamResponse asStream() { if (osddFile == null) { throw ComponentUtil.getResponseManager().new404("Unsupported Open Search Description Document response."); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 4.7K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.javafinal String logFilePath = systemHelper.getLogFilePath(); if (StringUtil.isNotBlank(logFilePath)) { final Path logDirPath = Paths.get(logFilePath); try (Stream<Path> stream = Files.list(logDirPath)) { stream.filter(entry -> isLogFilename(entry.getFileName().toString())).sorted().forEach(filePath -> { final Map<String, Object> map = new HashMap<>(); Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.5K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java} // 404 throw responseManager.new404("Thumbnail for " + form.docId + " is under generating."); } return asStream(form.docId).contentType(getImageMimeType(thumbnailFile)).stream(out -> { try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(thumbnailFile))) { out.write(in); } }); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 4.4K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/cache/CacheAction.javasaveError(messages -> messages.addErrorsDocidNotFound(GLOBAL, form.docId)); return redirect(ErrorAction.class); } final StreamResponse response = asStream(DocumentUtil.getValue(doc, fessConfig.getIndexFieldDocId(), String.class)).contentType("text/html; charset=UTF-8") .data(content.getBytes(Constants.CHARSET_UTF_8)); Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 3.9K bytes - Viewed (0)
- 
				
				src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.javavalidateApi(body, messages -> {}); return kuromojiService.getKuromojiFile(body.dictId) .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> { file.writeOut(out); })) .orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsFailedToDownloadProtwordsFile(GLOBAL)); Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 9.4K bytes - Viewed (0)