Język

AbstractPooledConnAdapter Class

Definition

Caution

This class is obsoleted in this android platform

Abstract adapter from pool entries to managed client connections.

[Android.Runtime.Register("org/apache/http/impl/conn/AbstractPooledConnAdapter", DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public abstract class AbstractPooledConnAdapter : Org.Apache.Http.Impl.Conn.AbstractClientConnAdapter
[<Android.Runtime.Register("org/apache/http/impl/conn/AbstractPooledConnAdapter", DoNotGenerateAcw=true)>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type AbstractPooledConnAdapter = class
    inherit AbstractClientConnAdapter
Inheritance
Derived
Attributes

Remarks

The member descriptions are based on the Android pooled connection adapter implementation.

AOSP source documentation for AbstractPooledConnAdapter.

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
AbstractPooledConnAdapter(IClientConnectionManager, AbstractPoolEntry)

Creates a managed connection adapter for the supplied pool entry.

AbstractPooledConnAdapter(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

Properties

Name Description
Class

Returns the runtime class of this Object.

(Inherited from Object)
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.

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.

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.

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.

AssertNotAborted()

Throws InterruptedIOException if this connection has been aborted.

(Inherited from AbstractClientConnAdapter)
AssertValid(IOperatedClientConnection)

Throws IllegalStateException if the supplied wrapped connection is null. This check does not test the aborted flag.

(Inherited from AbstractClientConnAdapter)
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.

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.

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.

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.

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.

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.

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 self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

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 self to type TResult, checking that the coercion is valid on the Java side.

Applies to