BasicManagedEntity 类

定义

[Android.Runtime.Register("org/apache/http/conn/BasicManagedEntity", DoNotGenerateAcw=true)]
public class BasicManagedEntity : Org.Apache.Http.Entity.HttpEntityWrapper, IDisposable, Java.Interop.IJavaPeerable, Org.Apache.Http.Conn.IConnectionReleaseTrigger, Org.Apache.Http.Conn.IEofSensorWatcher
[<Android.Runtime.Register("org/apache/http/conn/BasicManagedEntity", DoNotGenerateAcw=true)>]
type BasicManagedEntity = class
    inherit HttpEntityWrapper
    interface IConnectionReleaseTrigger
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface IEofSensorWatcher
继承
BasicManagedEntity
属性
实现

注解

Android 平台文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

BasicManagedEntity(IHttpEntity, IManagedClientConnection, Boolean)

创建可以释放连接的新托管实体。

BasicManagedEntity(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

AttemptReuse

是否使连接保持活动状态。

Class

返回此 Object的运行时类。

(继承自 Object)
Content

创建实体的新 InputStream 对象。

(继承自 HttpEntityWrapper)
ContentEncoding

获取 Content-Encoding 标头(如果已知)。

(继承自 HttpEntityWrapper)
ContentLength

指示内容的长度(如果已知)。

(继承自 HttpEntityWrapper)
ContentType

获取 Content-Type 标头(如果已知)。

(继承自 HttpEntityWrapper)
Handle

基础 Android 实例的句柄。

(继承自 Object)
IsChunked

告知此实体的分块编码。

(继承自 HttpEntityWrapper)
IsRepeatable

指示实体是否能够多次生成其数据。

(继承自 HttpEntityWrapper)
IsStreaming

指示此实体是否依赖于基础流。

(继承自 HttpEntityWrapper)
JniIdentityHashCode

IManagedClientConnection释放 ..

(继承自 Object)
JniPeerMembers

IManagedClientConnection释放 ..

ManagedConn

要释放的连接。

PeerReference

IManagedClientConnection释放 ..

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

WrappedEntity

包装的实体。

(继承自 HttpEntityWrapper)

方法

AbortConnection()

释放连接而不选择保持连接。

Clone()

创建并返回此对象的副本。

(继承自 Object)
ConsumeContent()

TODO:此方法的名称错误。

(继承自 HttpEntityWrapper)
Dispose()

IManagedClientConnection释放 ..

(继承自 Object)
Dispose(Boolean)

IManagedClientConnection释放 ..

(继承自 Object)
EofDetected(Stream)

指示检测到 EOF。

Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
ReleaseConnection()

释放与保持连接选项的连接。

ReleaseManagedConnection()

正常释放连接。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
StreamAbort(Stream)

指示 EofSensorInputStream 中止。

StreamClosed(Stream)

指示 EofSensorInputStream 已关闭。

ToArray<T>()

IManagedClientConnection释放 ..

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

IManagedClientConnection释放 ..

(继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
WriteTo(Stream)

将实体内容写入输出流。

(继承自 HttpEntityWrapper)

显式接口实现

IJavaPeerable.Disposed()

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.Finalized()

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.JniManagedPeerState

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

IManagedClientConnection释放 ..

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

IManagedClientConnection释放 ..

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

IManagedClientConnection释放 ..

GetJniTypeName(IJavaPeerable)

IManagedClientConnection释放 ..

WriteToAsync(IHttpEntity, Stream)

IManagedClientConnection释放 ..

适用于