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

HttpRouteDirector

public interface HttpRouteDirector
Provides directions on establishing a route. Implementations of this interface compare a planned route with a tracked route and indicate the next step required.
author
Roland Weber
version
$Revision: 620255 $
since
4.0

Fields Summary
public static final int
UNREACHABLE
Indicates that the route can not be established at all.
public static final int
COMPLETE
Indicates that the route is complete.
public static final int
CONNECT_TARGET
Step: open connection to target.
public static final int
CONNECT_PROXY
Step: open connection to proxy.
public static final int
TUNNEL_TARGET
Step: tunnel through proxy to target.
public static final int
TUNNEL_PROXY
Step: tunnel through proxy to other proxy.
public static final int
LAYER_PROTOCOL
Step: layer protocol (over tunnel).
Constructors Summary
Methods Summary
public intnextStep(org.apache.http.conn.routing.RouteInfo plan, org.apache.http.conn.routing.RouteInfo fact)
Provides the next step.

param
plan the planned route
param
fact the currently established route, or null if nothing is established
return
one of the constants defined in this interface, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure.