Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for sendApiResponse (0.06 seconds)

  1. src/main/java/org/codelibs/fess/filter/LoadControlFilter.java

            if (logger.isInfoEnabled()) {
                logger.info("Rejecting request due to high CPU load: path={}, cpu={}%, threshold={}%", path, cpuPercent, threshold);
            }
    
            if (isApiPath) {
                sendApiResponse(httpResponse);
            } else {
                httpResponse.sendError(429);
            }
        }
    
        /**
         * Checks if the given path should be excluded from load control.
         * @param path the request path
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/filter/LoadControlFilterTest.java

        //                                                                  ==================
    
        @Test
        public void test_sendApiResponse() throws IOException {
            loadControlFilter.sendApiResponse(mockResponse);
    
            assertEquals(429, mockResponse.getStatus());
            assertEquals("application/json;charset=UTF-8", mockResponse.getContentType());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 33.6K bytes
    - Click Count (0)
Back to Top