/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
(this.connection, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(final HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
/** * Creates a new tracker for the given route. * Only target and origin are taken from the route, * everything else remains to be tracked. * * @param route the route to track */ public RouteTracker(HttpRoute route) { this(route.getTargetHost(), route.getLocalAddress()); }
public void connect( final HttpClientConnection conn, final HttpRoute route, final int connectTimeout, final HttpContext context) throws IOException { Args.notNull(conn, "Connection"); Args.notNull(route, "HTTP route"); Asserts.check(conn == this.conn, "Connection not obtained from this manager"); final HttpHost host; if (route.getProxyHost() != null) { host = route.getProxyHost(); } else { host = route.getTargetHost(); } final InetSocketAddress localAddress = route.getLocalAddress() != null ? new InetSocketAddress(route.getLocalAddress(), 0) : null;; this.connectionOperator.connect(this.conn, host, localAddress, connectTimeout, this.socketConfig, context); }
public HttpRoute determineRoute(HttpHost target, HttpRequest request, HttpContext context) throws HttpException { if (proxyRouteMap != null) { HttpRoute targetRoute = proxyRouteMap.get(target); if (targetRoute != null) { return targetRoute; } } HttpRoute route = super.determineRoute(target, request, context); if (defaultProxyHosts != null && defaultProxyHosts.length > 0) { HttpHost targetHost = route.getTargetHost(); InetAddress local = route.getLocalAddress(); boolean secure = route.isSecure(); TunnelType tunnelType = route.getTunnelType(); LayerType layerType = route.getLayerType(); route = new HttpRoute(targetHost, local, defaultProxyHosts, secure, tunnelType, layerType); } return route; }
public void connect( final HttpClientConnection managedConn, final HttpRoute route, final int connectTimeout, final HttpContext context) throws IOException { Args.notNull(managedConn, "Managed Connection"); Args.notNull(route, "HTTP route"); final ManagedHttpClientConnection conn; synchronized (managedConn) { final CPoolEntry entry = CPoolProxy.getPoolEntry(managedConn); conn = entry.getConnection(); } final HttpHost host; if (route.getProxyHost() != null) { host = route.getProxyHost(); } else { host = route.getTargetHost(); } final InetSocketAddress localAddress = route.getLocalAddress() != null ? new InetSocketAddress(route.getLocalAddress(), 0) : null;; SocketConfig socketConfig = this.configData.getSocketConfig(host); if (socketConfig == null) { socketConfig = this.configData.getDefaultSocketConfig(); } if (socketConfig == null) { socketConfig = SocketConfig.DEFAULT; } this.connectionOperator.connect( conn, host, localAddress, connectTimeout, socketConfig, context); }
(this.connection, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);
conn, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);
conn, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);
conn, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);
conn, (proxy != null) ? proxy : route.getTargetHost(), route.getLocalAddress(), context, params);