AbstractHttpClient 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.
Base HTTP client that coordinates protocol handlers and connection strategies.
[Android.Runtime.Register("org/apache/http/impl/client/AbstractHttpClient", DoNotGenerateAcw=true)]
public abstract class AbstractHttpClient : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Org.Apache.Http.Client.IHttpClient
[<Android.Runtime.Register("org/apache/http/impl/client/AbstractHttpClient", DoNotGenerateAcw=true)>]
type AbstractHttpClient = class
inherit Object
interface IHttpClient
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Derived
- Attributes
- Implements
Remarks
Android platform documentation
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.
Constructors
| Name | Description |
|---|---|
| AbstractHttpClient(IClientConnectionManager, IHttpParams) |
Initializes the HTTP client base. |
| AbstractHttpClient(IntPtr, JniHandleOwnership) | |
Properties
| Name | Description |
|---|---|
| AuthSchemes |
Gets or sets the authentication scheme registry. |
| Class |
Returns the runtime class of this |
| ConnectionKeepAliveStrategy |
Gets the connection keep-alive strategy. |
| ConnectionManager |
Gets the client connection manager. |
| ConnectionReuseStrategy |
Gets the connection reuse strategy. |
| CookieSpecs |
Gets or sets the cookie-specification registry. |
| CookieStore |
Gets or sets the cookie store. |
| CredentialsProvider |
Gets or sets the credentials provider. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| HttpProcessor |
Gets the HTTP processor. |
| HttpRequestRetryHandler |
Gets or sets the HTTP request retry handler. |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniPeerMembers | |
| Params |
Gets or sets the default HTTP parameters. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ProxyAuthenticationHandler |
Gets or sets the proxy authentication handler. |
| RedirectHandler |
Gets or sets the redirect handler. |
| RequestExecutor |
Gets the request executor. |
| RequestInterceptorCount |
Gets the number of request interceptors. |
| ResponseInterceptorCount |
Gets the number of response interceptors. |
| RoutePlanner |
Gets or sets the HTTP route planner. |
| TargetAuthenticationHandler |
Gets or sets the target authentication handler. |
| ThresholdClass | |
| ThresholdType | |
| UserTokenHandler |
Gets or sets the user token handler. |
Methods
| Name | Description |
|---|---|
| AddRequestInterceptor(IHttpRequestInterceptor, Int32) |
Adds a request interceptor. |
| AddRequestInterceptor(IHttpRequestInterceptor) |
Adds a request interceptor. |
| AddResponseInterceptor(IHttpResponseInterceptor, Int32) |
Adds a response interceptor. |
| AddResponseInterceptor(IHttpResponseInterceptor) |
Adds a response interceptor. |
| ClearRequestInterceptors() |
Removes all request interceptors. |
| ClearResponseInterceptors() |
Removes all response interceptors. |
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| CreateAuthSchemeRegistry() |
Creates the default Auth Scheme Registry. |
| CreateClientConnectionManager() |
Creates the default Client Connection Manager. |
| CreateConnectionKeepAliveStrategy() |
Creates the default Connection Keep Alive Strategy. |
| CreateConnectionReuseStrategy() |
Creates the default Connection Reuse Strategy. |
| CreateCookieSpecRegistry() |
Creates the default Cookie Spec Registry. |
| CreateCookieStore() |
Creates the default Cookie Store. |
| CreateCredentialsProvider() |
Creates the default Credentials Provider. |
| CreateHttpContext() |
Creates the default Http Context. |
| CreateHttpParams() |
Creates the default Http Params. |
| CreateHttpProcessor() |
Creates the default Http Processor. |
| CreateHttpRequestRetryHandler() |
Creates the default Http Request Retry Handler. |
| CreateHttpRoutePlanner() |
Creates the default Http Route Planner. |
| CreateProxyAuthenticationHandler() |
Creates the default Proxy Authentication Handler. |
| CreateRedirectHandler() |
Creates the default Redirect Handler. |
| CreateRequestExecutor() |
Creates the default Request Executor. |
| CreateTargetAuthenticationHandler() |
Creates the default Target Authentication Handler. |
| CreateUserTokenHandler() |
Creates the default User Token Handler. |
| DetermineParams(IHttpRequest) |
Builds execution parameters from client and request parameters. |
| 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) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| Execute(HttpHost, IHttpRequest, IHttpContext) |
Executes an HTTP request. |
| Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext) |
Executes an HTTP request. |
| Execute(HttpHost, IHttpRequest, IResponseHandler) |
Executes an HTTP request. |
| Execute(HttpHost, IHttpRequest) |
Executes an HTTP request. |
| Execute(IHttpUriRequest, IHttpContext) |
Executes an HTTP request. |
| Execute(IHttpUriRequest, IResponseHandler, IHttpContext) |
Executes an HTTP request. |
| Execute(IHttpUriRequest, IResponseHandler) |
Executes an HTTP request. |
| Execute(IHttpUriRequest) |
Executes an HTTP request. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetRequestInterceptor(Int32) |
Gets the request interceptor at the specified index. |
| GetResponseInterceptor(Int32) |
Gets the response interceptor at the specified index. |
| JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| 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) |
| RemoveRequestInterceptorByClass(Class) |
Removes request interceptors of the specified class. |
| RemoveResponseInterceptorByClass(Class) |
Removes response interceptors of the specified class. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetKeepAliveStrategy(IConnectionKeepAliveStrategy) |
Sets the connection keep-alive strategy. |
| SetReuseStrategy(IConnectionReuseStrategy) |
Sets the connection reuse strategy. |
| 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) |
| 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() |
Notifies the interop runtime that this managed peer has been disposed. (Inherited from Object) |
| IJavaPeerable.DisposeUnlessReferenced() |
Releases this Java peer unless it is retained by another managed reference. (Inherited from Object) |
| IJavaPeerable.Finalized() |
Notifies the interop runtime that this managed peer has been finalized. (Inherited from Object) |
| IJavaPeerable.JniManagedPeerState |
Gets the state that describes the relationship between this managed peer and its JNI reference. (Inherited from Object) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Sets the interop identity hash code for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Sets the managed and JNI peer state for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Sets the JNI object reference used by this managed peer. (Inherited from Object) |
Extension Methods
| Name | Description |
|---|---|
| ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IHttpContext) |
Executes a request to the target using the given context. |
| ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IResponseHandler, IHttpContext) |
Executes a request to the target using the given context and processes the response using the given response handler. |
| ExecuteAsync(IHttpClient, HttpHost, IHttpRequest, IResponseHandler) |
Executes a request to the target using the default context and processes the response using the given response handler. |
| ExecuteAsync(IHttpClient, HttpHost, IHttpRequest) |
Executes a request to the target using the default context. |
| ExecuteAsync(IHttpClient, IHttpUriRequest, IHttpContext) |
Executes a request using the given context. |
| ExecuteAsync(IHttpClient, IHttpUriRequest, IResponseHandler, IHttpContext) |
Executes a request using the given context and processes the response using the given response handler. |
| ExecuteAsync(IHttpClient, IHttpUriRequest, IResponseHandler) |
Executes a request using the default context and processes the response using the given response handler. |
| ExecuteAsync(IHttpClient, IHttpUriRequest) |
Executes a request using the default context. |
| 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) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |