Skip to content

Most visited

Recently visited


EntityEnclosingRequestWrapper | Android Developers

to top
Android APIs
public class


extends RequestWrapper
implements HttpEntityEnclosingRequest
   ↳ org.apache.http.message.AbstractHttpMessage
     ↳ org.apache.http.impl.client.RequestWrapper
       ↳ org.apache.http.impl.client.EntityEnclosingRequestWrapper

Class Overview

A wrapper class for HttpEntityEnclosingRequests that can be used to change properties of the current request without modifying the original object.

This class is also capable of resetting the request headers to the state of the original request.


Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)
Public Methods
boolean expectContinue()
Tells if this request should use the expect-continue handshake.
HttpEntity getEntity()
boolean isRepeatable()
void setEntity(HttpEntity entity)
Hands the entity to the request.
Inherited Methods
From class org.apache.http.impl.client.RequestWrapper
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.HttpUriRequest

Public Constructors

public EntityEnclosingRequestWrapper (HttpEntityEnclosingRequest request)

Added in API level 1

Public Methods

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 boolean isRepeatable ()

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.
This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.