Class ApacheConnectorProvider

    • Constructor Detail

      • ApacheConnectorProvider

        public ApacheConnectorProvider()
    • Method Detail

      • getHttpClient

        public static org.apache.http.client.HttpClient getHttpClient​(Configurable<?> component)
        Retrieve the underlying Apache HttpClient instance from JerseyClient or JerseyWebTarget configured to use ApacheConnectorProvider.
        Parameters:
        component - JerseyClient or JerseyWebTarget instance that is configured to use ApacheConnectorProvider.
        Returns:
        underlying Apache HttpClient instance.
        Throws:
        IllegalArgumentException - in case the component is neither JerseyClient nor JerseyWebTarget instance or in case the component is not configured to use a ApacheConnectorProvider.
        Since:
        2.8
      • getCookieStore

        public static org.apache.http.client.CookieStore getCookieStore​(Configurable<?> component)
        Retrieve the underlying Apache CookieStore instance from JerseyClient or JerseyWebTarget configured to use ApacheConnectorProvider.
        Parameters:
        component - JerseyClient or JerseyWebTarget instance that is configured to use ApacheConnectorProvider.
        Returns:
        underlying Apache CookieStore instance.
        Throws:
        IllegalArgumentException - in case the component is neither JerseyClient nor JerseyWebTarget instance or in case the component is not configured to use a ApacheConnectorProvider.
        Since:
        2.16