All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient43Engine Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha4
Show newest version
package org.jboss.resteasy.client.jaxrs.engines;

import org.apache.http.HttpHost;
import org.apache.http.client.HttpClient;
import org.jboss.resteasy.client.jaxrs.i18n.LogMessages;

/**
 * An Apache HTTP engine for use with the new Builder Config style.
 */
public class ApacheHttpClient43Engine extends ManualClosingApacheHttpClient43Engine
{
   public ApacheHttpClient43Engine()
   {
      super();
   }

   public ApacheHttpClient43Engine(final HttpHost defaultProxy)
   {
      super(defaultProxy);
   }

   public ApacheHttpClient43Engine(final HttpClient httpClient)
   {
      super(httpClient);
   }

   public ApacheHttpClient43Engine(final HttpClient httpClient, final boolean closeHttpClient)
   {
      super(httpClient, closeHttpClient);
   }

   public ApacheHttpClient43Engine(final HttpClient httpClient, final HttpContextProvider httpContextProvider)
   {
      super(httpClient, httpContextProvider);
   }

   public void finalize() throws Throwable
   {
      if (!closed && allowClosingHttpClient && httpClient != null)
         LogMessages.LOGGER.closingForYou(this.getClass());
      close();
      super.finalize();
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy