Language

DefaultRequestDirector.DetermineRoute Method

Definition

Determines the route for the request.

[Android.Runtime.Register("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", "GetDetermineRoute_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")]
protected virtual Org.Apache.Http.Conn.Routing.HttpRoute? DetermineRoute(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", "GetDetermineRoute_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member DetermineRoute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.Conn.Routing.HttpRoute
override this.DetermineRoute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The target host, or null to use the default host in the request parameters.

request
IHttpRequest

The request passed to the route planner and consulted for a default target host.

context
IHttpContext

The execution context passed to the route planner.

Returns

The route selected by the configured route planner. An exception is thrown if neither the argument nor the request parameters supplies a target host.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to