/** * Creates a new route with all attributes specified explicitly. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxies the proxy chain to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled the tunnel type of this route * @param layered the layering type of this route */ public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxies), secure, tunnelled, layered); }
/** * Creates a new route with at most one proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled <code>true</code> if the route is (to be) tunnelled * via the proxy, * <code>false</code> otherwise * @param layered <code>true</code> if the route includes a * layered protocol, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxy), secure, tunnelled, layered); }
/** * Creates a new route through a proxy. * When using this constructor, the <code>proxy</code> MUST be given. * For convenience, it is assumed that a secure connection will be * layered over a tunnel through the proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure) { this(local, target, toChain(proxy), secure, secure ? TunnelType.TUNNELLED : TunnelType.PLAIN, secure ? LayerType.LAYERED : LayerType.PLAIN); if (proxy == null) { throw new IllegalArgumentException ("Proxy host may not be null."); } }
/** * Creates a new route with all attributes specified explicitly. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxies the proxy chain to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled the tunnel type of this route * @param layered the layering type of this route */ public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxies), secure, tunnelled, layered); }
/** * Creates a new route with all attributes specified explicitly. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxies the proxy chain to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled the tunnel type of this route * @param layered the layering type of this route */ public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxies), secure, tunnelled, layered); }
/** * Creates a new route with all attributes specified explicitly. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxies the proxy chain to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled the tunnel type of this route * @param layered the layering type of this route */ public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxies), secure, tunnelled, layered); }
/** * Creates a new route with all attributes specified explicitly. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxies the proxy chain to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled the tunnel type of this route * @param layered the layering type of this route */ public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxies), secure, tunnelled, layered); }
/** * Creates a new route with at most one proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled <code>true</code> if the route is (to be) tunnelled * via the proxy, * <code>false</code> otherwise * @param layered <code>true</code> if the route includes a * layered protocol, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxy), secure, tunnelled, layered); }
/** * Creates a new route with at most one proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled <code>true</code> if the route is (to be) tunnelled * via the proxy, * <code>false</code> otherwise * @param layered <code>true</code> if the route includes a * layered protocol, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxy), secure, tunnelled, layered); }
/** * Creates a new route with at most one proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled <code>true</code> if the route is (to be) tunnelled * via the proxy, * <code>false</code> otherwise * @param layered <code>true</code> if the route includes a * layered protocol, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxy), secure, tunnelled, layered); }
/** * Creates a new route with at most one proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use, or * <code>null</code> for a direct route * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise * @param tunnelled <code>true</code> if the route is (to be) tunnelled * via the proxy, * <code>false</code> otherwise * @param layered <code>true</code> if the route includes a * layered protocol, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure, TunnelType tunnelled, LayerType layered) { this(local, target, toChain(proxy), secure, tunnelled, layered); }
/** * Creates a new route through a proxy. * When using this constructor, the <code>proxy</code> MUST be given. * For convenience, it is assumed that a secure connection will be * layered over a tunnel through the proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure) { this(local, target, toChain(proxy), secure, secure ? TunnelType.TUNNELLED : TunnelType.PLAIN, secure ? LayerType.LAYERED : LayerType.PLAIN); if (proxy == null) { throw new IllegalArgumentException ("Proxy host may not be null."); } }
/** * Creates a new route through a proxy. * When using this constructor, the <code>proxy</code> MUST be given. * For convenience, it is assumed that a secure connection will be * layered over a tunnel through the proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure) { this(local, target, toChain(proxy), secure, secure ? TunnelType.TUNNELLED : TunnelType.PLAIN, secure ? LayerType.LAYERED : LayerType.PLAIN); if (proxy == null) { throw new IllegalArgumentException ("Proxy host may not be null."); } }
/** * Creates a new route through a proxy. * When using this constructor, the <code>proxy</code> MUST be given. * For convenience, it is assumed that a secure connection will be * layered over a tunnel through the proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure) { this(local, target, toChain(proxy), secure, secure ? TunnelType.TUNNELLED : TunnelType.PLAIN, secure ? LayerType.LAYERED : LayerType.PLAIN); if (proxy == null) { throw new IllegalArgumentException ("Proxy host may not be null."); } }
/** * Creates a new route through a proxy. * When using this constructor, the <code>proxy</code> MUST be given. * For convenience, it is assumed that a secure connection will be * layered over a tunnel through the proxy. * * @param target the host to which to route * @param local the local address to route from, or * <code>null</code> for the default * @param proxy the proxy to use * @param secure <code>true</code> if the route is (to be) secure, * <code>false</code> otherwise */ public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, boolean secure) { this(local, target, toChain(proxy), secure, secure ? TunnelType.TUNNELLED : TunnelType.PLAIN, secure ? LayerType.LAYERED : LayerType.PLAIN); if (proxy == null) { throw new IllegalArgumentException ("Proxy host may not be null."); } }