Android APIs
public abstract class


extends HttpRequestBase
implements HttpEntityEnclosingRequest
   ↳ org.apache.http.message.AbstractHttpMessage
     ↳ org.apache.http.client.methods.HttpRequestBase
       ↳ org.apache.http.client.methods.HttpEntityEnclosingRequestBase
Known Direct Subclasses

Class Overview

Basic implementation of an HTTP request that can be modified.


Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
Public Methods
Object clone()
Creates and returns a copy of this Object.
boolean expectContinue()
Tells if this request should use the expect-continue handshake.
HttpEntity getEntity()
void setEntity(HttpEntity entity)
Hands the entity to the request.
Inherited Methods
From class org.apache.http.client.methods.HttpRequestBase
From class org.apache.http.message.AbstractHttpMessage
From class java.lang.Object
From interface org.apache.http.client.methods.HttpUriRequest
From interface org.apache.http.client.methods.AbortableHttpRequest
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpEntityEnclosingRequest
From interface org.apache.http.HttpRequest

Public Constructors

public HttpEntityEnclosingRequestBase ()

Added in API level 1

Public Methods

public Object clone ()

Added in API level 1

Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.

  • a copy of this object.

public boolean expectContinue ()

Added in API level 1

Tells if this request should use the expect-continue handshake. The expect continue handshake gives the server a chance to decide whether to accept the entity enclosing request before the possibly lengthy entity is sent across the wire.

  • true if the expect continue handshake should be used, false if not.

public HttpEntity getEntity ()

Added in API level 1

public void setEntity (HttpEntity entity)

Added in API level 1

Hands the entity to the request.

entity the entity to send.