Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for getStatusCode (0.23 sec)

  1. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientResponse.java

        URI getEffectiveUri() {
            return effectiveUri;
        }
    
        boolean wasSuccessful() {
            int statusCode = getStatusLine().getStatusCode();
            return statusCode >= 200 && statusCode < 400;
        }
    
        boolean wasMissing() {
            int statusCode = getStatusLine().getStatusCode();
            return statusCode == 404;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. test-site/app/models/ContentsCreator.java

                    HttpUriRequest request = new HttpGet(url);
                    HttpResponse response = httpClient.execute(request);
                    if(response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
                        Logger.warn("Error response:" + response.getStatusLine().getStatusCode());
                        EntityUtils.consume(response.getEntity());
                        continue;
                    }
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 3.7K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkingIssueVerifier.java

                HttpErrorStatusCodeException httpError = (HttpErrorStatusCodeException) failure;
                return httpError.isServerError() || isTransientClientError(httpError.getStatusCode());
            }
            Throwable cause = failure.getCause();
            if (cause != null && cause != failure) {
                return isLikelyTransientNetworkingIssue(cause);
            }
            return false;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java

            return "Http " + method + " Resource: " + source;
        }
    
        @Override
        public ExternalResourceMetaData getMetaData() {
            return metaData;
        }
    
        public int getStatusCode() {
            return response.getStatusLine().getStatusCode();
        }
    
        public Date getLastModified() {
            String responseHeader = response.getHeader(HttpHeaders.LAST_MODIFIED);
            if (responseHeader == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/java-library/quickstart/groovy/src/main/java/org/gradle/HttpClientWrapper.java

        private HttpEntity doGet(HttpGet get) throws Exception {
            HttpResponse response = client.execute(get);
            if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
                System.err.println("Method failed: " + response.getStatusLine());
            }
            return response.getEntity();
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpErrorStatusCodeException.java

                method, source, statusCode, reason));
            this.statusCode = statusCode;
        }
    
        public boolean isServerError() {
            return statusCode >= 500 && statusCode < 600;
        }
    
        public int getStatusCode() {
            return statusCode;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

                if (LOGGER.isDebugEnabled()) {
                    LOGGER.debug("Response for GET {}: {}", safeUri(uri), statusLine);
                }
                int statusCode = statusLine.getStatusCode();
                if (isHttpSuccess(statusCode)) {
                    reader.readFrom(response.getContent());
                    return true;
                } else if (statusCode == HttpStatus.SC_NOT_FOUND) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpResourceAccessorTest.groovy

            1 * response.close()
        }
    
        private CloseableHttpResponse mockHttpResponse() {
            def response = Mock(CloseableHttpResponse)
            def statusLine = Mock(StatusLine)
            statusLine.getStatusCode() >> 200
            response.getStatusLine() >> statusLine
            response
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/java-library/quickstart/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

        private HttpEntity doGet(HttpGet get) throws Exception {
            HttpResponse response = client.execute(get);
            if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
                System.err.println("Method failed: " + response.getStatusLine());
            }
            return response.getEntity();
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top