HttpRequestBase HttpRequestBase Class

Definition

Warning

This API is now obsolete.

Basic implementation of an HTTP request that can be modified.

[Android.Runtime.Register("org/apache/http/client/methods/HttpRequestBase", ApiSince=1, DoNotGenerateAcw=true)]
[System.Obsolete("This class is obsoleted in this android platform")]
public abstract class HttpRequestBase : Org.Apache.Http.Message.AbstractHttpMessage, IDisposable, Java.Lang.ICloneable, Org.Apache.Http.Client.Methods.IAbortableHttpRequest, Org.Apache.Http.Client.Methods.IHttpUriRequest
type HttpRequestBase = class
    inherit AbstractHttpMessage
    interface ICloneable
    interface IJavaObject
    interface IDisposable
    interface IAbortableHttpRequest
    interface IHttpUriRequest
    interface IHttpRequest
    interface IHttpMessage
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

HttpRequestBase() HttpRequestBase()
HttpRequestBase(IntPtr, JniHandleOwnership) HttpRequestBase(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
Headergroup Headergroup Inherited from AbstractHttpMessage
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
IsAborted IsAborted

Tests if the request execution has been aborted.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Method Method

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

Params Params

Returns the parameters effective for this message as set by Params.

(Inherited from AbstractHttpMessage)
PeerReference PeerReference Inherited from Object
ProtocolVersion ProtocolVersion

Returns the protocol version this message is compatible with.

RequestLine RequestLine

Returns the request line of this request.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

URI URI

Returns the URI this request uses, such as http://example.org/path/to/file.

Methods

Abort() Abort()

Aborts this http request.

AddHeader(IHeader) AddHeader(IHeader)

Adds a header to this message.

(Inherited from AbstractHttpMessage)
AddHeader(String, String) AddHeader(String, String)

Adds a header to this message.

(Inherited from AbstractHttpMessage)
Clone() Clone()

Creates and returns a copy of this Object.

ContainsHeader(String) ContainsHeader(String)

Checks if a certain header is present in this message.

(Inherited from AbstractHttpMessage)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetAllHeaders() GetAllHeaders()

Returns all the headers of this message.

(Inherited from AbstractHttpMessage)
GetFirstHeader(String) GetFirstHeader(String)

Returns the first header with a specified name of this message.

(Inherited from AbstractHttpMessage)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetHeaders(String) GetHeaders(String)

Returns all the headers with a specified name of this message.

(Inherited from AbstractHttpMessage)
GetLastHeader(String) GetLastHeader(String)

Returns the last header with a specified name of this message.

(Inherited from AbstractHttpMessage)
HeaderIterator() HeaderIterator()

Returns an iterator of the headers with a given name.

(Inherited from AbstractHttpMessage)
HeaderIterator(String) HeaderIterator(String)

Returns an iterator of the headers with a given name.

(Inherited from AbstractHttpMessage)
JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
RemoveHeader(IHeader) RemoveHeader(IHeader)

Removes a header from this message.

(Inherited from AbstractHttpMessage)
RemoveHeaders(String) RemoveHeaders(String)

Removes all headers with a certain name from this message.

(Inherited from AbstractHttpMessage)
SetConnectionRequest(IClientConnectionRequest) SetConnectionRequest(IClientConnectionRequest)

Sets the IClientConnectionRequest callback that can be used to abort a long-lived request for a connection.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetHeader(IHeader) SetHeader(IHeader)

Overwrites the first header with the same name.

(Inherited from AbstractHttpMessage)
SetHeader(String, String) SetHeader(String, String)

Overwrites the first header with the same name.

(Inherited from AbstractHttpMessage)
SetHeaders(IHeader[]) SetHeaders(IHeader[])

Overwrites all the headers in the message.

(Inherited from AbstractHttpMessage)
SetReleaseTrigger(IConnectionReleaseTrigger) SetReleaseTrigger(IConnectionReleaseTrigger)

Sets the IConnectionReleaseTrigger callback that can be used to abort an active connection.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to