|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.conn.RouteDirector
public class RouteDirector
Provides directions on establishing a route. Instances of this class compare a planned route with a tracked route and indicate the next step required.
Field Summary | |
---|---|
static int |
COMPLETE
Indicates that the route is complete. |
static int |
CONNECT_PROXY
Step: open connection to proxy. |
static int |
CONNECT_TARGET
Step: open connection to target. |
static int |
LAYER_PROTOCOL
Step: layer protocol (over tunnel). |
static int |
TUNNEL_PROXY
Step: tunnel through proxy to other proxy. |
static int |
TUNNEL_TARGET
Step: tunnel through proxy to target. |
static int |
UNREACHABLE
Indicates that the route can not be established at all. |
Constructor Summary | |
---|---|
RouteDirector()
|
Method Summary | |
---|---|
protected int |
directStep(HttpRoute plan,
HttpRoute fact)
Determines the next step to establish a direct connection. |
protected int |
firstStep(HttpRoute plan)
Determines the first step to establish a route. |
int |
nextStep(HttpRoute plan,
HttpRoute fact)
Provides the next step. |
protected int |
proxiedStep(HttpRoute plan,
HttpRoute fact)
Determines the next step to establish a connection via proxy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNREACHABLE
public static final int COMPLETE
public static final int CONNECT_TARGET
public static final int CONNECT_PROXY
public static final int TUNNEL_TARGET
public static final int TUNNEL_PROXY
public static final int LAYER_PROTOCOL
Constructor Detail |
---|
public RouteDirector()
Method Detail |
---|
public int nextStep(HttpRoute plan, HttpRoute fact)
plan
- the planned routefact
- the currently established route, or
null
if nothing is established
protected int firstStep(HttpRoute plan)
plan
- the planned route
protected int directStep(HttpRoute plan, HttpRoute fact)
plan
- the planned routefact
- the currently established route
protected int proxiedStep(HttpRoute plan, HttpRoute fact)
plan
- the planned routefact
- the currently established route
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |