FileDocCategorySizeDatePackage
HttpRoutePlanner.javaAPI DocAndroid 1.5 API2717Wed May 06 22:41:10 BST 2009org.apache.http.conn.routing

HttpRoutePlanner

public interface HttpRoutePlanner
Encapsulates logic to compute a {@link HttpRoute} to a target host. Implementations may for example be based on parameters, or on the standard Java system properties.

Fields Summary
Constructors Summary
Methods Summary
public org.apache.http.conn.routing.HttpRoutedetermineRoute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
Determines the route for a request.

param
target the target host for the request. Implementations may accept null if they can still determine a route, for example to a default target or by inspecting the request.
param
request the request to execute
param
context the context to use for the subsequent execution. Implementations may accept null.
return
the route that the request should take
throws
HttpException in case of a problem