Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 61 for getResponse (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. README.md

    // Synchronous suggestion request
    SuggestResponse response = suggester.suggest()
        .setQuery("sea")                    // user input
        .setSize(10)                        // max suggestions
        .execute()
        .getResponse();
    
    // Process suggestions
    response.getItems().forEach(item -> {
        System.out.println("Suggestion: " + item.getText()[0]);
        System.out.println("Score: " + item.getScore());
    });
    ```
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Aug 31 03:31:14 GMT 2025
    - 12.1K bytes
    - Click Count (1)
  2. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

             * @return The response.
             */
            public RESPONSE getResponse() {
                return getResponse(1, TimeUnit.MINUTES);
            }
    
            /**
             * Returns the response.
             * @param time The time to wait.
             * @param unit The time unit.
             * @return The response.
             */
            public RESPONSE getResponse(final long time, final TimeUnit unit) {
                try {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComClose.java

            this.lastWriteTime = lastWriteTime;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#getResponse()
         */
        @Override
        public final SmbComBlankResponse getResponse() {
            return (SmbComBlankResponse) super.getResponse();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.Request#initResponse(jcifs.CIFSContext)
         */
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

            // getResponse should now return the same instance
            assertSame(resp, req.getResponse(), "getResponse should expose the initialized response");
        }
    
        @Test
        @DisplayName("getResponse before initResponse returns null")
        void getResponseInitiallyNull() {
            SmbComNTCreateAndX req = createRequest(0, 0);
            assertNull(req.getResponse(), "Before init, response is null");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/SmbNegotiationTest.java

            assertSame(request, negotiation.getRequest());
        }
    
        @Test
        @DisplayName("getResponse should return the same response instance")
        void testGetResponse() {
            // Verify getResponse returns the exact same instance
            SmbNegotiationResponse response = negotiation.getResponse();
            assertSame(mockResponse, response);
    
            // Verify multiple calls return the same instance
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        }
    
        @Test
        @DisplayName("Test setResponse and getResponse methods")
        void testSetAndGetResponse() {
            // Given
            doNothing().when(messageBlock).setResponse(response);
            when(messageBlock.getResponse()).thenReturn(response);
    
            // When
            messageBlock.setResponse(response);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java

            assertNotNull(authenticator.getLastResolver());
        }
    
        // Test getResponse method with different response types
        @Test
        public void test_getResponse_withMetadataType() {
            // Setup - Test with null response initially
            ActionResponse result = authenticator.getResponse(SsoResponseType.METADATA);
    
            // Verify initial state
            assertNull(result);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (1)
  8. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            SuggestResponse response = deferred.promise().getResponse(5, TimeUnit.SECONDS);
            assertEquals(0, response.getNum());
        }
    
        @Test
        public void test_getResponseAfterResolve() throws Exception {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/sso/SsoManagerTest.java

            assertEquals("testuser", ((TestLoginCredential) credential).username);
        }
    
        // Test getResponse() method
        @Test
        public void test_getResponse_whenNotAvailable() {
            currentSsoType = Constants.NONE;
            assertNull(ssoManager.getResponse(SsoResponseType.METADATA));
            assertNull(ssoManager.getResponse(SsoResponseType.LOGOUT));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/curl/CurlRequestTest.java

            assertNotNull(processor);
            assertNotNull(processor.getResponse());
        }
    
        @Test
        public void testRequestProcessorGetResponse() {
            // Test RequestProcessor getResponse method
            CurlRequest.RequestProcessor processor = new CurlRequest.RequestProcessor("UTF-8", 2048);
            CurlResponse response = processor.getResponse();
            assertNotNull(response);
        }
    
        @Test
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 24.7K bytes
    - Click Count (0)
Back to Top