Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getStatusCode (0.1 sec)

  1. src/main/java/org/codelibs/fess/exception/WebApiException.java

     */
    package org.codelibs.fess.exception;
    
    public class WebApiException extends FessSystemException {
    
        private static final long serialVersionUID = 1L;
    
        private final int statusCode;
    
        public int getStatusCode() {
            return statusCode;
        }
    
        public WebApiException(final int statusCode, final String message, final Throwable cause) {
            super(message, cause);
            this.statusCode = statusCode;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

            try (CloseableHttpResponse response = httpClient.execute(httpPost)) {
                if (response.getStatusLine().getStatusCode() != Constants.OK_STATUS_CODE) {
                    logger.error("Failed to access {}, code: {}.", url, response.getStatusLine().getStatusCode());
                    return null;
                }
    
                data.setContent(EntityUtils.toString(response.getEntity(), Charsets.UTF_8));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

                    httpRequest = new HttpGet(buf.toString());
                }
    
                executor.accept(httpRequest, (response, entity) -> {
                    final int httpStatusCode = response.getStatusLine().getStatusCode();
                    if (httpStatusCode < 400 || httpStatusCode == 401) {
                        parseTokenPage(tokenPattern, responseParams, entity);
                    } else {
                        String content;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

            } catch (final WebApiException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to process a popularWord request.", e);
                }
                writeJsonResponse(e.getStatusCode(), e);
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to process a popularWord request.", e);
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                    message = "[" + errorCode + "] Failed to access to Web API.";
                    logger.warn(message, e);
                }
                response.sendError(e.getStatusCode(), message);
            }
        }
    
        protected void processRequest(final HttpServletRequest request, final HttpServletResponse response, final String path) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                // get a content
                final HttpResponse response = executeHttpClient(httpGet);
                httpEntity = response.getEntity();
    
                final int httpStatusCode = response.getStatusLine().getStatusCode();
                if (httpStatusCode == 200) {
    
                    // check file size
                    final Header contentLengthHeader = response.getFirstHeader("Content-Length");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top