@Contract(threading=STATELESS) public class BasicRouteDirector extends Object implements HttpRouteDirector
HttpRouteDirector
implementation.Modifier and Type | Field and Description |
---|---|
static BasicRouteDirector |
INSTANCE
Default instance of
BasicRouteDirector . |
COMPLETE, CONNECT_PROXY, CONNECT_TARGET, LAYER_PROTOCOL, TUNNEL_PROXY, TUNNEL_TARGET, UNREACHABLE
Constructor and Description |
---|
BasicRouteDirector() |
Modifier and Type | Method and Description |
---|---|
protected int |
directStep(RouteInfo plan,
RouteInfo fact)
Determines the next step to establish a direct connection.
|
protected int |
firstStep(RouteInfo plan)
Determines the first step to establish a route.
|
int |
nextStep(RouteInfo plan,
RouteInfo fact)
Provides the next step.
|
protected int |
proxiedStep(RouteInfo plan,
RouteInfo fact)
Determines the next step to establish a connection via proxy.
|
public static final BasicRouteDirector INSTANCE
BasicRouteDirector
.public int nextStep(RouteInfo plan, RouteInfo fact)
nextStep
in interface HttpRouteDirector
plan
- the planned routefact
- the currently established route, or
null
if nothing is establishedprotected int firstStep(RouteInfo plan)
plan
- the planned routeprotected int directStep(RouteInfo plan, RouteInfo fact)
plan
- the planned routefact
- the currently established routeprotected int proxiedStep(RouteInfo plan, RouteInfo fact)
plan
- the planned routefact
- the currently established routeCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.