Package org.apache.http.conn

Examples of org.apache.http.conn.HostConfiguration


         *
         * @param entry         the pool entry for the connection to delete
         */
        private synchronized void deleteConnection(TrackingPoolEntry entry) {

            HostConfiguration route = entry.plannedRoute;

            if (LOG.isDebugEnabled()) {
                LOG.debug("Reclaiming connection, hostConfig=" + route);
            }

View Full Code Here


         *
         * @param entry         the pool entry for the connection
         */
        private void freeConnection(TrackingPoolEntry entry) {

            HostConfiguration route = entry.plannedRoute;

            if (LOG.isDebugEnabled()) {
                LOG.debug("Freeing connection, hostConfig=" + route);
            }

View Full Code Here

       
        ThreadSafeClientConnManager mgr = createTSCCM(null, null);

        HttpHost target = new HttpHost("www.test.invalid", 80, "http");
        HttpRoute route = new HttpRoute(target, null, false);
        HostConfiguration hcfg = route.toHostConfig(); //@@@ deprecated

        ManagedClientConnection conn = mgr.getConnection(route);

        assertEquals("connectionsInPool",
                     mgr.getConnectionsInPool(), 1);
View Full Code Here

TOP

Related Classes of org.apache.http.conn.HostConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.