Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 HttpEntityEnclosingRequest s 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.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.

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.