Class BasicClientConnectionManager

java.lang.Object
org.apache.http.impl.conn.BasicClientConnectionManager
All Implemented Interfaces:
ClientConnectionManager

@Contract(threading=SAFE) @Deprecated public class BasicClientConnectionManager extends Object implements ClientConnectionManager
Deprecated.
A connection manager for a single connection. This connection manager maintains only one active connection. Even though this class is fully thread-safe it ought to be used by one execution thread only, as only one thread a time can lease the connection at a time.

This connection manager will make an effort to reuse the connection for subsequent requests with the same route. It will, however, close the existing connection and open it for the given route, if the route of the persistent connection does not match that of the connection request. If the connection has been already been allocated IllegalStateException is thrown.

This connection manager implementation should be used inside an EJB container instead of PoolingClientConnectionManager.

Since:
4.2
  • Field Details

    • log

      private final org.apache.commons.logging.Log log
      Deprecated.
    • COUNTER

      private static final AtomicLong COUNTER
      Deprecated.
    • MISUSE_MESSAGE

      public static final String MISUSE_MESSAGE
      Deprecated.
      The message to be logged on multiple allocation.
      See Also:
    • schemeRegistry

      private final SchemeRegistry schemeRegistry
      Deprecated.
      The schemes supported by this connection manager.
    • connOperator

      private final ClientConnectionOperator connOperator
      Deprecated.
      The operator for opening and updating connections.
    • poolEntry

      private HttpPoolEntry poolEntry
      Deprecated.
      The one and only entry in this pool.
    • conn

      Deprecated.
      The currently issued managed connection, if any.
    • shutdown

      private volatile boolean shutdown
      Deprecated.
      Indicates whether this connection manager is shut down.
  • Constructor Details

    • BasicClientConnectionManager

      public BasicClientConnectionManager(SchemeRegistry schreg)
      Deprecated.
      Creates a new simple connection manager.
      Parameters:
      schreg - the scheme registry
    • BasicClientConnectionManager

      public BasicClientConnectionManager()
      Deprecated.
  • Method Details