Class HTTPClientVersionCheck

java.lang.Object
org.jboss.resteasy.client.jaxrs.HTTPClientVersionCheck

public class HTTPClientVersionCheck extends Object
This is a workaound. For backward compatibility Apache client APIs pre-4.3 and 4.3 versions must be simultaneously supported. This code checks for the presents of 4.3 version code. This static code resides in this class so it will not interfere with the ability to override the ResteasyClientBuilder method in which it is used. User: rsearls Date: 5/4/17
  • Field Details

    • useOldHTTPClient

      private static final boolean useOldHTTPClient
    • newHTTPClientAvailable

      private static final boolean newHTTPClientAvailable
  • Constructor Details

    • HTTPClientVersionCheck

      public HTTPClientVersionCheck()
  • Method Details

    • isUseOldHTTPClient

      public static boolean isUseOldHTTPClient()
    • isNewHTTPClientAvailable

      public static boolean isNewHTTPClientAvailable()