hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: implementation of a custom HttpRoutePlanner - how to choose the HttpRoute attributes (secure, tunnel type, and layer type)?
Date Sat, 21 Nov 2009 13:11:29 GMT
Stefan Wachter wrote:
> Hi all,
> 
> I want to write a custom implementation of the HttpRoutePlanner
> interface. The only method to implement is:
> 
>       public HttpRoute determineRoute(HttpHost aTarget, HttpRequest
> aRequest, HttpContext aContext) throws HttpException
> 
> i.e. the method has to return an HttpRoute instance. There are various
> constructors for an HttpRoute with the most general being:
> 
>     public HttpRoute(HttpHost target, InetAddress local, HttpHost[]
> proxies, boolean secure, TunnelType tunnelled, LayerType layered)
> 
> I can determine the array of proxies because of my application logic,
> but I am unsure which values the remaining parameters (secure,
> tunnelled, and layered) should take.
> 
> Could someone shed some light on these parameters? How do they effect
> the behaviour of HttpClient?
> 

http://hc.apache.org/httpcomponents-client/tutorial/html/connmgmt.html#d4e442
http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/conn/routing/RouteInfo.LayerType.html
http://hc.apache.org/httpcomponents-client/httpclient/apidocs/org/apache/http/conn/routing/RouteInfo.TunnelType.html

I hope this is enough

Oleg

> Best regards,
> --Stefan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message