Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for onResponse (0.59 seconds)

  1. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java

            } else {
                builder.setQuery(functionScoreQuery);
            }
    
            builder.execute(new ActionListener<SearchResponse>() {
                @Override
                public void onResponse(final SearchResponse searchResponse) {
                    if (searchResponse.getFailedShards() > 0) {
                        deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards()));
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  2. docs/recipes.md

                .build()
    
            client.newCall(request).enqueue(object : Callback {
              override fun onFailure(call: Call, e: IOException) {
                e.printStackTrace()
              }
    
              override fun onResponse(call: Call, response: Response) {
                response.use {
                  if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
                  for ((name, value) in response.headers) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              fail("")
            }
    
            override fun onResponse(
              call: Call,
              response: Response,
            ): Unit = throw IOException("a")
          },
        )
        assertThat(testLogHandler.take())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      @Test
      fun callback() {
        val callback =
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) = TODO()
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) = TODO()
          }
      }
    
      @Test
      fun certificatePinner() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  5. okhttp/api/jvm/okhttp.api

    	public abstract fun newCall (Lokhttp3/Request;)Lokhttp3/Call;
    }
    
    public abstract interface class okhttp3/Callback {
    	public abstract fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V
    	public abstract fun onResponse (Lokhttp3/Call;Lokhttp3/Response;)V
    }
    
    public final class okhttp3/CertificatePinner {
    	public static final field Companion Lokhttp3/CertificatePinner$Companion;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

         */
        public void refresh(final String... indices) {
            client.admin().indices().prepareRefresh(indices).execute(new ActionListener<RefreshResponse>() {
                @Override
                public void onResponse(final RefreshResponse response) {
                    if (logger.isDebugEnabled()) {
                        logger.debug(() -> "Refreshed " + stream(indices).get(stream -> stream.collect(Collectors.joining(", "))));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  7. okhttp/api/android/okhttp.api

    	public abstract fun newCall (Lokhttp3/Request;)Lokhttp3/Call;
    }
    
    public abstract interface class okhttp3/Callback {
    	public abstract fun onFailure (Lokhttp3/Call;Ljava/io/IOException;)V
    	public abstract fun onResponse (Lokhttp3/Call;Lokhttp3/Response;)V
    }
    
    public final class okhttp3/CertificatePinner {
    	public static final field Companion Lokhttp3/CertificatePinner$Companion;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        val enRequest =
          Request
            .Builder()
            .url(url)
            .header("Accept-Language", "en-US")
            .build()
        val enResponse = client.newCall(enRequest).execute()
        assertThat(enResponse.body.string()).isEqualTo("B")
      }
    
      @Test
      fun varyMatchesUnchangedRequestHeaderField() {
        server.enqueue(
          MockResponse
            .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 121K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

        @Test
        public void test_detectIntent_withoutHistory_backwardCompatible() {
            client.setTestIntentDetectionPrompt(
                    "{{conversationHistory}}\nQuestion: {{userMessage}}\n{{languageInstruction}}\nResponse (JSON only):");
            client.setChatResponse("{\"intent\":\"faq\",\"query\":\"Fess features\",\"reasoning\":\"FAQ question\"}");
    
            // Call the original single-arg method
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
Back to Top