Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for contentTypeOctetStream (0.11 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            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()) {
                            ComponentUtil.getSystemProperties().store(baos, id);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

         */
        // GET /api/admin/badword/download
        @Execute
        public StreamResponse get$download(final DownloadBody body) {
            validateApi(body, messages -> {});
            return asStream("badword.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath();
                try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

            verifyTokenKeep(() -> downloadpage(form.dictId));
            return stopwordsService.getStopwordsFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java

            verifyTokenKeep(() -> downloadpage(form.dictId));
            return protwordsService.getProtwordsFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

            verifyTokenKeep(() -> downloadpage(form.dictId));
            return charMappingService.getCharMappingFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

         */
        @Execute
        public StreamResponse get$download(final DownloadBody body) {
            validateApi(body, messages -> {});
            return asStream("elevate.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-elevate-", ".csv").toPath();
                try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

                return null;
            }
            validate(form, messages -> {}, this::asListHtml);
            verifyTokenKeep(this::asListHtml);
            return asStream(file.getName()).contentTypeOctetStream().stream(out -> {
                try (FileInputStream fis = new FileInputStream(file)) {
                    out.write(fis);
                }
            });
        }
    
        /**
         * Delete a design file.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

            body.dictId = dictId;
            validateApi(body, messages -> {});
            return stemmerOverrideService.getStemmerOverrideFile(body.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/AdminDictKuromojiAction.java

            verifyTokenKeep(() -> downloadpage(form.dictId));
            return kuromojiService.getKuromojiFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public ActionResponse download(final DownloadForm form) {
            verifyToken(this::asDownloadHtml);
    
            return asStream("badword.csv").contentTypeOctetStream().stream(out -> {
                final Path tempFile = ComponentUtil.getSystemHelper().createTempFile("fess-badword-", ".csv").toPath();
                try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 18.3K bytes
    - Viewed (0)
Back to top