DefaultHttpClient 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.
HTTP client that supplies the standard default components.
[Android.Runtime.Register("org/apache/http/impl/client/DefaultHttpClient", DoNotGenerateAcw=true)]
public class DefaultHttpClient : Org.Apache.Http.Impl.Client.AbstractHttpClient
[<Android.Runtime.Register("org/apache/http/impl/client/DefaultHttpClient", DoNotGenerateAcw=true)>]
type DefaultHttpClient = class
inherit AbstractHttpClient
- Inheritance
- Attributes
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 |
|---|---|
| DefaultHttpClient() |
Initializes a default HTTP client. |
| DefaultHttpClient(IClientConnectionManager, IHttpParams) |
Initializes a default HTTP client. |
| DefaultHttpClient(IHttpParams) |
Initializes a default HTTP client. |
| DefaultHttpClient(IntPtr, JniHandleOwnership) | |
Properties
| Name | Description |
|---|---|
| AuthSchemes |
Gets or sets the authentication scheme registry. (Inherited from AbstractHttpClient) |
| Class |
Returns the runtime class of this |
| ConnectionKeepAliveStrategy |
Gets the connection keep-alive strategy. (Inherited from AbstractHttpClient) |
| ConnectionManager |
Gets the client connection manager. (Inherited from AbstractHttpClient) |
| ConnectionReuseStrategy |
Gets the connection reuse strategy. (Inherited from AbstractHttpClient) |
| CookieSpecs |
Gets or sets the cookie-specification registry. (Inherited from AbstractHttpClient) |
| CookieStore |
Gets or sets the cookie store. (Inherited from AbstractHttpClient) |
| CredentialsProvider |
Gets or sets the credentials provider. (Inherited from AbstractHttpClient) |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| HttpProcessor |
Gets the HTTP processor. (Inherited from AbstractHttpClient) |
| HttpRequestRetryHandler |
Gets or sets the HTTP request retry handler. (Inherited from AbstractHttpClient) |
| 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. (Inherited from AbstractHttpClient) |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| ProxyAuthenticationHandler |
Gets or sets the proxy authentication handler. (Inherited from AbstractHttpClient) |
| RedirectHandler |
Gets or sets the redirect handler. (Inherited from AbstractHttpClient) |
| RequestExecutor |
Gets the request executor. (Inherited from AbstractHttpClient) |
| RequestInterceptorCount |
Gets the number of request interceptors. (Inherited from AbstractHttpClient) |
| ResponseInterceptorCount |
Gets the number of response interceptors. (Inherited from AbstractHttpClient) |
| RoutePlanner |
Gets or sets the HTTP route planner. (Inherited from AbstractHttpClient) |
| TargetAuthenticationHandler |
Gets or sets the target authentication handler. (Inherited from AbstractHttpClient) |
| ThresholdClass | |
| ThresholdType | |
| UserTokenHandler |
Gets or sets the user token handler. (Inherited from AbstractHttpClient) |
Methods
| Name | Description |
|---|---|
| AddRequestInterceptor(IHttpRequestInterceptor, Int32) |
Adds a request interceptor. (Inherited from AbstractHttpClient) |
| AddRequestInterceptor(IHttpRequestInterceptor) |
Adds a request interceptor. (Inherited from AbstractHttpClient) |
| AddResponseInterceptor(IHttpResponseInterceptor, Int32) |
Adds a response interceptor. (Inherited from AbstractHttpClient) |
| AddResponseInterceptor(IHttpResponseInterceptor) |
Adds a response interceptor. (Inherited from AbstractHttpClient) |
| ClearRequestInterceptors() |
Removes all request interceptors. (Inherited from AbstractHttpClient) |
| ClearResponseInterceptors() |
Removes all response interceptors. (Inherited from AbstractHttpClient) |
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| CreateAuthSchemeRegistry() |
Creates the standard default Auth Scheme Registry. |
| CreateClientConnectionManager() |
Creates the standard default Client Connection Manager. |
| CreateConnectionKeepAliveStrategy() |
Creates the standard default Connection Keep Alive Strategy. |
| CreateConnectionReuseStrategy() |
Creates the standard default Connection Reuse Strategy. |
| CreateCookieSpecRegistry() |
Creates the standard default Cookie Spec Registry. |
| CreateCookieStore() |
Creates the standard default Cookie Store. |
| CreateCredentialsProvider() |
Creates the standard default Credentials Provider. |
| CreateHttpContext() |
Creates the standard default Http Context. |
| CreateHttpParams() |
Creates the standard default Http Params. |
| CreateHttpProcessor() |
Creates the standard default Http Processor. |
| CreateHttpRequestRetryHandler() |
Creates the standard default Http Request Retry Handler. |
| CreateHttpRoutePlanner() |
Creates the standard default Http Route Planner. |
| CreateProxyAuthenticationHandler() |
Creates the standard default Proxy Authentication Handler. |
| CreateRedirectHandler() |
Creates the standard default Redirect Handler. |
| CreateRequestExecutor() |
Creates the standard default Request Executor. |
| CreateTargetAuthenticationHandler() |
Creates the standard default Target Authentication Handler. |
| CreateUserTokenHandler() |
Creates the standard default User Token Handler. |
| DetermineParams(IHttpRequest) |
Builds execution parameters from client and request parameters. (Inherited from AbstractHttpClient) |
| 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. (Inherited from AbstractHttpClient) |
| Execute(HttpHost, IHttpRequest, IResponseHandler, IHttpContext) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(HttpHost, IHttpRequest, IResponseHandler) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(HttpHost, IHttpRequest) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(IHttpUriRequest, IHttpContext) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(IHttpUriRequest, IResponseHandler, IHttpContext) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(IHttpUriRequest, IResponseHandler) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| Execute(IHttpUriRequest) |
Executes an HTTP request. (Inherited from AbstractHttpClient) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetRequestInterceptor(Int32) |
Gets the request interceptor at the specified index. (Inherited from AbstractHttpClient) |
| GetResponseInterceptor(Int32) |
Gets the response interceptor at the specified index. (Inherited from AbstractHttpClient) |
| 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. (Inherited from AbstractHttpClient) |
| RemoveResponseInterceptorByClass(Class) |
Removes response interceptors of the specified class. (Inherited from AbstractHttpClient) |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetKeepAliveStrategy(IConnectionKeepAliveStrategy) |
Sets the connection keep-alive strategy. (Inherited from AbstractHttpClient) |
| SetReuseStrategy(IConnectionReuseStrategy) |
Sets the connection reuse strategy. (Inherited from AbstractHttpClient) |
| 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 |