Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getCurlHelper (0.1 sec)

  1. src/main/java/org/codelibs/fess/dict/DictionaryManager.java

                creator.setDictionaryManager(this);
            });
        }
    
        public DictionaryFile<? extends DictionaryItem>[] getDictionaryFiles() {
            try (CurlResponse response = ComponentUtil.getCurlHelper().get("/_configsync/file").param("fields", "path,@timestamp")
                    .param("size", ComponentUtil.getFessConfig().getPageDictionaryMaxFetchSize()).execute()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

                        }
                    }
                }
                try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_configsync/flush").execute()) {
                    if (response.getHttpStatusCode() == 200) {
                        logger.info("Flushed config files.");
                    } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java

            if (values[1].startsWith("/")) {
                path = values[1];
            } else {
                path = "/" + values[1];
            }
    
            final CurlHelper curlHelper = ComponentUtil.getCurlHelper();
            switch (values[0].toUpperCase(Locale.ROOT)) {
            case "GET":
                return curlHelper.get(path);
            case "POST":
                return curlHelper.post(path);
            case "PUT":
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

            final ZipEntry entry = new ZipEntry(id + "/es_" + v1 + "_" + v2 + ".json");
            try {
                zos.putNextEntry(entry);
                try (CurlResponse response = ComponentUtil.getCurlHelper().get("/_" + v1 + "/" + v2).execute()) {
                    CopyUtil.copy(response.getContentAsStream(), zos);
                }
            } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/UpgradeUtil.java

            try {
                final String source = FileUtil.readUTF8(filePath);
                try (CurlResponse response =
                        ComponentUtil.getCurlHelper().post("/_configsync/file").param("path", path).body(source).execute()) {
                    if (response.getHttpStatusCode() == 200) {
                        logger.info("Register {} to {}", path, indexName);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

            final String maxDocs = StringUtil.isNotBlank(fessConfig.getIndexReindexMaxDocs()) ? fessConfig.getIndexReindexMaxDocs() : null;
            try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_reindex").param("refresh", refresh)
                    .param("requests_per_second", requestsPerSecond).param("scroll", scroll).param("max_docs", maxDocs)
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                return;
            }
    
            final Method httpMethod = Method.valueOf(request.getMethod().toUpperCase(Locale.ROOT));
            final CurlRequest curlRequest = ComponentUtil.getCurlHelper().request(httpMethod, path);
    
            final String contentType = request.getHeader("Content-Type");
            if (StringUtil.isNotEmpty(contentType)) {
                curlRequest.header("Content-Type", contentType);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

            final ObjectMapper mapper = new ObjectMapper();
            final AtomicBoolean resetJobs = new AtomicBoolean(false);
            try (CurlResponse response = ComponentUtil.getCurlHelper().post("/_bulk").onConnect((req, con) -> {
                con.setDoOutput(true);
                try (final BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(tempFile)));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/ComponentUtil.java

            return getComponent(ACCESS_TOKEN_HELPER);
        }
    
        public static QueryStringBuilder getQueryStringBuilder() {
            return getComponent(QUERY_STRING_BUILDER);
        }
    
        public static CurlHelper getCurlHelper() {
            return getComponent(CURL_HELPER);
        }
    
        public static LanguageHelper getLanguageHelper() {
            return getComponent(LANGUAGE_HELPER);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:35:51 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top