to top
Android APIs
public abstract class

HttpEntityEnclosingRequestBase

extends HttpRequestBase
implements HttpEntityEnclosingRequest
java.lang.Object
   ↳ 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.

Summary

[Expand]
Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
HttpEntityEnclosingRequestBase()
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.
[Expand]
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.HttpEntityEnclosingRequest
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest
From interface org.apache.http.client.methods.AbortableHttpRequest
From interface org.apache.http.client.methods.HttpUriRequest

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.

Returns
  • 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.

Returns
  • 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.

Parameters
entity the entity to send.