SingleClientConnManager.ConnAdapter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The connection adapter used by this manager.
[Android.Runtime.Register("org/apache/http/impl/conn/SingleClientConnManager$ConnAdapter", DoNotGenerateAcw=true)]
protected internal class SingleClientConnManager.ConnAdapter : Org.Apache.Http.Impl.Conn.AbstractPooledConnAdapter
- Inheritance
-
SingleClientConnManager.ConnAdapter
- Attributes
Remarks
The member descriptions are based on the nested adapter in the Android connection manager implementation. The __self parameter represents the enclosing instance, as shown by the generated inner-class binding pattern.
AOSP source documentation for SingleClientConnManager.ConnAdapter.
Portions of this page are derived from Apache HttpClient source code made available by the Apache Software Foundation under the Apache License, Version 2.0.
Constructors
| Name | Description |
|---|---|
| SingleClientConnManager.ConnAdapter(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
| SingleClientConnManager.ConnAdapter(SingleClientConnManager, SingleClientConnManager+PoolEntry, HttpRoute) |
Creates a connection adapter for the enclosing manager, marks it reusable, and records the planned route in the pool entry. |
Properties
| Name | Description |
|---|---|
| Class |
Returns the runtime class of this |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| IsMarkedReusable |
Gets whether this connection is marked as being in a reusable communication state. (Inherited from AbstractClientConnAdapter) |
| IsOpen |
Gets whether the wrapped connection is open. (Inherited from AbstractClientConnAdapter) |
| IsSecure |
Gets whether the wrapped connection is considered secure. (Inherited from AbstractClientConnAdapter) |
| IsStale |
Gets whether the connection is aborted, detached, or reported as stale by the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState | (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI metadata used to access members of this Java binding. |
| LocalAddress |
Gets the local address from the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| LocalPort |
Gets the local port from the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| Manager |
Gets the manager to which connection release is delegated. (Inherited from AbstractClientConnAdapter) |
| Metrics |
Gets the communication metrics from the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| PoolEntry |
Gets or sets the pool entry wrapped by this adapter. (Inherited from AbstractPooledConnAdapter) |
| RemoteAddress |
Gets the remote address from the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| RemotePort |
Gets the remote port from the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| Route |
Gets the route established so far from the attached entry's tracker. (Inherited from AbstractPooledConnAdapter) |
| SocketTimeout |
Gets or sets the socket timeout through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| SSLSession |
Gets the SSL session from the wrapped connection's socket, if it is open and uses an SSL socket. This operation can block. (Inherited from AbstractClientConnAdapter) |
| State |
Gets or sets the state object in the attached pool entry. (Inherited from AbstractPooledConnAdapter) |
| ThresholdClass |
Gets the Java class used for virtual method dispatch. |
| ThresholdType |
Gets the managed type that declares this Java binding. |
| WrappedConnection |
Gets the connection to which communication operations are delegated. (Inherited from AbstractClientConnAdapter) |
Methods
| Name | Description |
|---|---|
| AbortConnection() |
Marks the connection as aborted and not reusable, then attempts to shut it down. Releases it to the manager immediately only when called on the thread that created this adapter. (Inherited from AbstractClientConnAdapter) |
| AssertAttached() |
Throws IllegalStateException if this adapter is detached from its pool entry. (Inherited from AbstractPooledConnAdapter) |
| AssertNotAborted() |
Throws InterruptedIOException if this connection has been aborted. (Inherited from AbstractClientConnAdapter) |
| AssertValid(IOperatedClientConnection) |
Throws IllegalStateException if the supplied wrapped connection is |
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Close() |
Clears the pool entry's tracked route and gracefully closes the wrapped connection, if still attached. (Inherited from AbstractPooledConnAdapter) |
| Construct(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| Detach() |
Removes the references to the wrapped connection and its manager, so this adapter can no longer be used for communication. (Inherited from AbstractClientConnAdapter) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() | (Inherited from JavaObject) |
| Equals(Object) | (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| Flush() |
Writes pending buffered output through the wrapped connection after checking that the adapter is not aborted or detached. (Inherited from AbstractClientConnAdapter) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| IsResponseAvailable(Int32) |
Checks whether response data is available through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| LayerProtocol(IHttpContext, IHttpParams) |
Delegates protocol layering over an established tunnel to the attached pool entry. (Inherited from AbstractPooledConnAdapter) |
| MarkReusable() |
Marks this connection as being in a reusable communication state. Send and receive operations clear this mark; the mark does not guarantee reuse. (Inherited from AbstractClientConnAdapter) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| Open(HttpRoute, IHttpContext, IHttpParams) |
Delegates opening the connection to the attached pool entry. (Inherited from AbstractPooledConnAdapter) |
| OpenAsync(HttpRoute, IHttpContext, IHttpParams) |
Runs Open(HttpRoute, IHttpContext, IHttpParams) through Task scheduling. (Inherited from AbstractClientConnAdapter) |
| ReceiveResponseEntity(IHttpResponse) |
Clears the reuse marker and receives a response entity through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| ReceiveResponseHeader() |
Clears the reuse marker and receives the next response status line and headers through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| ReleaseConnection() |
Releases this connection to its manager with the configured idle duration. Does nothing if no manager is attached. (Inherited from AbstractClientConnAdapter) |
| SendRequestEntity(IHttpEntityEnclosingRequest) |
Clears the reuse marker and sends the request entity through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| SendRequestHeader(IHttpRequest) |
Clears the reuse marker and sends the request line and headers through the wrapped connection. (Inherited from AbstractClientConnAdapter) |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetIdleDuration(Int64, TimeUnit) |
Sets the idle duration passed to the manager on release, converting positive durations to milliseconds. Reset this duration after each request. (Inherited from AbstractClientConnAdapter) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) | (Inherited from JavaObject) |
| Shutdown() |
Clears the pool entry's tracked route and forces the wrapped connection to close without flushing, if still attached. (Inherited from AbstractPooledConnAdapter) |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| TunnelProxy(HttpHost, Boolean, IHttpParams) |
Delegates tracking of an already established tunnel to the next proxy to the attached pool entry. Does not send CONNECT. (Inherited from AbstractPooledConnAdapter) |
| TunnelTarget(Boolean, IHttpParams) |
Delegates tracking of an already established target tunnel to the attached pool entry. Does not send CONNECT or add a protocol layer. (Inherited from AbstractPooledConnAdapter) |
| UnmarkReusable() |
Clears the reuse marker so that releasing this connection does not permit its reuse. (Inherited from AbstractClientConnAdapter) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() | (Inherited from JavaObject) |
| IJavaPeerable.Finalized() | (Inherited from JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock | (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from JavaObject) |
| IJavaPeerable.UnregisterFromRuntime() |
Removes this instance from the runtime's Java object lookup. (Inherited from AbstractClientConnAdapter) |
Extension Methods
| Name | Description |
|---|---|
| FlushAsync(IHttpClientConnection) | |
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| OpenAsync(IManagedClientConnection, HttpRoute, IHttpContext, IHttpParams) |
Runs Open(HttpRoute, IHttpContext, IHttpParams) on a thread pool thread to open the connection along the specified route. |
| ReceiveResponseHeaderAsync(IHttpClientConnection) | |
| SendRequestEntityAsync(IHttpClientConnection, IHttpEntityEnclosingRequest) | |
| SendRequestHeaderAsync(IHttpClientConnection, IHttpRequest) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |