Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for webApiException (0.35 sec)

  1. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            // Test creating multiple exceptions with different status codes
            WebApiException exception1 = new WebApiException(400, "Bad Request");
            WebApiException exception2 = new WebApiException(401, "Unauthorized");
            WebApiException exception3 = new WebApiException(500, "Internal Error");
    
            assertEquals(400, exception1.getStatusCode());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                            if (StringUtil.isBlank(userCode)) {
                                throw new WebApiException(HttpServletResponse.SC_BAD_REQUEST, "No user session.");
                            }
                            if (StringUtil.isBlank(favoriteUrl)) {
                                throw new WebApiException(HttpServletResponse.SC_BAD_REQUEST, "URL is null.");
                            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    }
                    processRequest(request, response, path);
                }).orElse(() -> {
                    throw new WebApiException(HttpServletResponse.SC_FORBIDDEN, "Invalid session.");
                });
            } catch (final WebApiException e) {
                String message;
                if (Constants.TRUE.equalsIgnoreCase(ComponentUtil.getFessConfig().getApiJsonResponseExceptionIncluded())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.9K bytes
    - Viewed (0)
Back to top