Język

SingleClientConnManager.GetConnection(HttpRoute, Object) Method

Definition

Obtains a managed connection immediately without waiting. Revokes any previous allocation and replaces an expired, closed, or route-incompatible connection as needed.

[Android.Runtime.Register("getConnection", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ManagedClientConnection;", "GetGetConnection_Lorg_apache_http_conn_routing_HttpRoute_Ljava_lang_Object_Handler")]
public virtual Org.Apache.Http.Conn.IManagedClientConnection? GetConnection(Org.Apache.Http.Conn.Routing.HttpRoute? route, Java.Lang.Object? state);
[<Android.Runtime.Register("getConnection", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ManagedClientConnection;", "GetGetConnection_Lorg_apache_http_conn_routing_HttpRoute_Ljava_lang_Object_Handler")>]
abstract member GetConnection : Org.Apache.Http.Conn.Routing.HttpRoute * Java.Lang.Object -> Org.Apache.Http.Conn.IManagedClientConnection
override this.GetConnection : Org.Apache.Http.Conn.Routing.HttpRoute * Java.Lang.Object -> Org.Apache.Http.Conn.IManagedClientConnection

Parameters

route
HttpRoute

The non-null planned route for the connection.

state
Object

The requested state object; not used by this implementation.

Returns

A newly issued adapter for the planned route, which can wrap an existing reusable connection or a new connection that is not yet open.

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