Search in sources :

Example 6 with HttpUrlConnectorProvider

use of org.glassfish.jersey.client.HttpUrlConnectorProvider in project jersey by jersey.

the class AsyncTest method configureClient.

@Override
protected void configureClient(final ClientConfig config) {
    config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
    config.connectorProvider(new HttpUrlConnectorProvider());
}
Also used : HttpUrlConnectorProvider(org.glassfish.jersey.client.HttpUrlConnectorProvider) LoggingFeature(org.glassfish.jersey.logging.LoggingFeature)

Aggregations

HttpUrlConnectorProvider (org.glassfish.jersey.client.HttpUrlConnectorProvider)6 Client (javax.ws.rs.client.Client)4 Response (javax.ws.rs.core.Response)4 ClientConfig (org.glassfish.jersey.client.ClientConfig)4 Test (org.junit.Test)4 InputStream (java.io.InputStream)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 JerseyTest (org.glassfish.jersey.test.JerseyTest)3 URL (java.net.URL)2 LoggingFeature (org.glassfish.jersey.logging.LoggingFeature)2 IOException (java.io.IOException)1 HttpURLConnection (java.net.HttpURLConnection)1 InetSocketAddress (java.net.InetSocketAddress)1 Proxy (java.net.Proxy)1 HttpsURLConnection (javax.net.ssl.HttpsURLConnection)1 SSLContext (javax.net.ssl.SSLContext)1 ConnectionFactory (org.glassfish.jersey.client.HttpUrlConnectorProvider.ConnectionFactory)1 Ignore (org.junit.Ignore)1