Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 617 for Executes (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/SynchronousGet.kt

      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for ((name, value) in response.headers) {
            println("$name: $value")
          }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/AdminAction.java

        //                                                                      Search Execute
        //                                                                      ==============
        /**
         * Show the index page.
         * @return The HTML response.
         */
        @Execute
        @Secured({ //
                AdminDashboardAction.ROLE, //
                AdminDashboardAction.ROLE + VIEW, //
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/score/ScoreBooster.java

                    .setQuery(QueryBuilders.termQuery(fessConfig.getIndexFieldUrl(), url))
                    .setFetchSource(false)
                    .setSize(fessConfig.getPageScoreBoosterMaxFetchSizeAsInteger())
                    .execute()
                    .actionGet(requestTimeout);
            return Arrays.stream(response.getHits().getHits()).map(SearchHit::getId).toArray(n -> new String[n]);
        };
    
        /**
         * A function to handle requests.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

            .build();
        Request request = new Request.Builder()
            .url(url)
            .build();
        Call call = httpClient.newCall(request);
        try (Response response = call.execute()) {
          JsonAdapter<OAuthSession> jsonAdapter = moshi.adapter(OAuthSession.class);
          return jsonAdapter.fromJson(response.body().source());
        }
      }
    
      /** See https://api.slack.com/methods/rtm.start. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jul 06 19:30:55 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt

            .build()
        val call =
          client.newCall(
            Request
              .Builder()
              .url("https://www.google.ca/")
              .build(),
          )
        val response = call.execute()
        try {
          println(response.code)
          println("PROTOCOL ${response.protocol}")
          var line: String?
          while (response.body
              .source()
              .readUtf8Line()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt

        val request =
          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
            body = file.asRequestBody(MEDIA_TYPE_MARKDOWN),
          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java

                        .prepareAnalyze(analyzerSettings.getAnalyzerSettingsIndexName(), text)
                        .setAnalyzer(analyzerSettings.getNormalizeAnalyzerName(field, lang))
                        .execute()
                        .actionGet(settings.getIndicesTimeout());
    
                final List<AnalyzeToken> termTokenList = termResponse.getTokens();
                if (termTokenList.isEmpty()) {
                    return text;
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:23:01 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheLoaderTest.java

    @NullUnmarked
    public class CacheLoaderTest extends TestCase {
    
      private static class QueuingExecutor implements Executor {
        private final Deque<Runnable> tasks = new ArrayDeque<>();
    
        @Override
        public void execute(Runnable task) {
          tasks.add(task);
        }
    
        private void runNext() {
          tasks.removeFirst().run();
        }
      }
    
      public void testAsyncReload() throws Exception {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java

            .header("Authorization", "Client-ID " + IMGUR_CLIENT_ID)
            .url("https://api.imgur.com/3/image")
            .post(requestBody)
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jun 24 12:59:42 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java

        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          System.out.println("Response completed: " + response);
        }
      }
    
      public static void main(String... args) throws Exception {
        new ConfigureTimeouts().run();
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Sep 28 18:00:26 UTC 2019
    - 1.5K bytes
    - Viewed (0)
Back to top