Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for http2client (0.13 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

            assertEquals(".*index\\.html$", httpClient.convertRobotsTxtPathPattern("index.html$"));
            assertEquals("/\\..*", httpClient.convertRobotsTxtPathPattern("/."));
            assertEquals("/.*", httpClient.convertRobotsTxtPathPattern("/*"));
            assertEquals(".*\\..*", httpClient.convertRobotsTxtPathPattern("."));
            assertEquals(".*", httpClient.convertRobotsTxtPathPattern("*"));
        }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/publishing/javaLibrary/groovy/src/main/java/org/gradle/HttpClientWrapper.java

    import org.apache.commons.httpclient.*;
    import org.apache.commons.httpclient.methods.*;
    import org.apache.commons.lang3.exception.ExceptionUtils;
    import java.io.IOException;
    import java.io.UnsupportedEncodingException;
    
    public class HttpClientWrapper {
    
        private final HttpClient client; // private member: implementation details
    
        // HttpClient is used as a parameter of a public method
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/publishing/javaLibrary/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

    import org.apache.commons.httpclient.*;
    import org.apache.commons.httpclient.methods.*;
    import org.apache.commons.lang3.exception.ExceptionUtils;
    import java.io.IOException;
    import java.io.UnsupportedEncodingException;
    
    public class HttpClientWrapper {
    
        private final HttpClient client; // private member: implementation details
    
        // HttpClient is used as a parameter of a public method
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt

    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import assertk.assertions.matches
    import java.net.http.HttpClient
    import java.net.http.HttpClient.Redirect.NORMAL
    import java.net.http.HttpRequest
    import java.net.http.HttpResponse.BodyHandlers
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.testing.PlatformRule
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/java-library/quickstart/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

    import org.apache.http.HttpStatus;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.UnsupportedEncodingException;
    
    public class HttpClientWrapper {
    
        private final HttpClient client; // private member: implementation details
    
        // HttpClient is used as a parameter of a public method
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

            clientFactory = container.getComponent("clientFactory");
            FaultTolerantClient httpClient = container.getComponent("httpClient");
            httpClient.setCrawlerClient(new HcHttpClient());
            clientFactory.addClient("http:.*", httpClient);
            clientFactory.addClient("https:.*", httpClient);
            clientFactory.addClient("file:.*", container.getComponent("fsClient"));
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/java-library/quickstart/groovy/src/main/java/org/gradle/HttpClientWrapper.java

    import org.apache.http.HttpStatus;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.UnsupportedEncodingException;
    
    public class HttpClientWrapper {
    
        private final HttpClient client; // private member: implementation details
    
        // HttpClient is used as a parameter of a public method
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/AlwaysFollowAndPreserveMethodRedirectStrategy.java

    import java.net.URI;
    
    /**
     * A class which makes httpclient follow redirects for all http methods.
     * This has been introduced to overcome a regression caused by switching to apache httpclient as the transport mechanism for publishing (https://issues.gradle.org/browse/GRADLE-3312)
     * The rational for httpclient not following redirects, by default, can be found here: https://issues.apache.org/jira/browse/HTTPCLIENT-860
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                    }
                }
            }
    
            httpClient = closeableHttpClient;
        }
    
        @PreDestroy
        public void destroy() {
            if (httpClient != null) {
                try {
                    httpClient.close();
                } catch (final IOException e) {
                    logger.error("Failed to close httpClient.", e);
                }
            }
        }
    
        @Override
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpClientHelperTest.groovy

            CloseableHttpClient httpClient = Mock()
            client.client = httpClient
            MockedHttpResponse mockedHttpResponse = mockedHttpResponse()
    
            when:
            client.performRequest(new HttpGet("http://gradle.org"), false)
    
            then:
            interaction {
                1 * httpClient.execute(_, _) >> mockedHttpResponse.response
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top