- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for json (0.38 sec)
-
src/test/java/org/codelibs/fess/it/ITBase.java
if (testToken != null) { return; } given().contentType("application/json").delete(getEsUrl() + "/fess_config.access_token/_doc/" + DEFAULT_TEST_TOKEN_ID); } public static void refresh() { given().contentType("application/json").post(getEsUrl() + "/_refresh"); } public static String getFessUrl() { return System.getProperty("test.fess.url", DEFAULT_FESS_URL); }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/NotificationHelper.java
StreamUtil.split(slackWebhookUrls, "[,\\s]").of(stream -> stream.filter(StringUtil::isNotBlank).forEach(url -> { try (CurlResponse response = Curl.post(url).header("Content-Type", "application/json").body(body).execute()) { if (response.getHttpStatusCode() == 200) { if (logger.isDebugEnabled()) { logger.debug("Sent {} to {}.", body, url); }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 5.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/CurlHelper.java
return request(Method.GET, path).header("Content-Type", "application/json"); } public CurlRequest post(final String path) { return request(Method.POST, path).header("Content-Type", "application/json"); } public CurlRequest put(final String path) { return request(Method.PUT, path).header("Content-Type", "application/json"); } public CurlRequest delete(final String path) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 4.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/guide/PostExample.java
import okhttp3.RequestBody; import okhttp3.Response; public class PostExample { public static final MediaType JSON = MediaType.get("application/json; charset=utf-8"); final OkHttpClient client = new OkHttpClient(); String post(String url, String json) throws IOException { RequestBody body = RequestBody.create(json, JSON); Request request = new Request.Builder() .url(url) .post(body) .build();
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/SuggestTests.java
import java.util.HashMap; import java.util.Map; import org.codelibs.fess.it.CrudTestBase; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import io.restassured.path.json.JsonPath; @Tag("it") public class SuggestTests extends CrudTestBase { private static final String NAME_PREFIX = ""; private static final String API_PATH = "/api/admin/suggest";
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 2.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/esreq/AdminEsreqAction.java
} else { try (final CurlResponse response = curlRequest.body(buf.toString()).execute()) { final File tempFile = ComponentUtil.getSystemHelper().createTempFile("esreq_", ".json"); try (final InputStream in = response.getContentAsStream()) { CopyUtil.copy(in, tempFile); } catch (final Exception e1) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 6.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/AccessTokenTests.java
import java.util.HashMap; import java.util.List; import java.util.Map; import org.codelibs.fess.it.CrudTestBase; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import io.restassured.path.json.JsonPath; @Tag("it") public class AccessTokenTests extends CrudTestBase { private static final String NAME_PREFIX = "accessTokenTest_"; private static final String API_PATH = "/api/admin/accesstoken";
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java
import org.codelibs.fess.it.CrudTestBase; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import io.restassured.path.json.JsonPath; @Tag("it") public class ReqHeaderTests extends CrudTestBase { private static final String NAME_PREFIX = "reqHeaderTest_"; private static final String API_PATH = "/api/admin/reqheader";
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProvider.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.mylasta.direction.sponsor; import org.lastaflute.core.json.JsonMappingOption; import org.lastaflute.core.json.JsonMappingOption.JsonFieldNaming; import org.lastaflute.core.json.JsonResourceProvider; public class FessJsonResourceProvider implements JsonResourceProvider { @Override public boolean isNullsSuppressed() {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 1.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/UpgradeUtil.java
try { source = FileUtil.readUTF8(mappingFile); } catch (final Exception e) { logger.warn("{} is not found.", mappingFile, e); } try { final AcknowledgedResponse putMappingResponse = indicesClient.preparePutMapping(index).setSource(source, XContentType.JSON)
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.1K bytes - Viewed (0)