Android APIs
public class

EntityEnclosingRequestWrapper

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

Summary

[Expand]
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.
[Expand]
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.client.methods.HttpUriRequest
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpEntityEnclosingRequest
From interface org.apache.http.HttpRequest

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.

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

Parameters
entity the entity to send.