Android

org.apache.http.conn.routing.BasicRouteDirector

java.lang.Object
org.apache.http.conn.routing.BasicRouteDirector HttpRouteDirector

Basic implementation of an HttpRouteDirector. This implementation is stateless and therefore thread-safe.

Summary

Constants inherited from interface org.apache.http.conn.routing.HttpRouteDirector

Public Constructors

            BasicRouteDirector()

Public Methods

          int  nextStep(RouteInfo plan, RouteInfo fact)
Provides the next step.

Protected Methods

          int  directStep(RouteInfo plan, RouteInfo fact)
Determines the next step to establish a direct connection.
          int  firstStep(RouteInfo plan)
Determines the first step to establish a route.
          int  proxiedStep(RouteInfo plan, RouteInfo fact)
Determines the next step to establish a connection via proxy.
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.conn.routing.HttpRouteDirector

Details

Public Constructors

public BasicRouteDirector()

Public Methods

public int nextStep(RouteInfo plan, RouteInfo fact)

Provides the next step.

Parameters

plan the planned route
fact the currently established route, or null if nothing is established

Returns

  • one of the constants defined in this class, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure.

Protected Methods

protected int directStep(RouteInfo plan, RouteInfo fact)

Determines the next step to establish a direct connection.

Parameters

plan the planned route
fact the currently established route

Returns

  • one of the constants defined in this class, indicating either the next step to perform, or success, or failure

protected int firstStep(RouteInfo plan)

Determines the first step to establish a route.

Parameters

plan the planned route

Returns

  • the first step

protected int proxiedStep(RouteInfo plan, RouteInfo fact)

Determines the next step to establish a connection via proxy.

Parameters

plan the planned route
fact the currently established route

Returns

  • one of the constants defined in this class, indicating either the next step to perform, or success, or failure
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56