to top
Android APIs
public interface

HttpEntityEnclosingRequest

implements HttpRequest
org.apache.http.HttpEntityEnclosingRequest
Known Indirect Subclasses

Class Overview

A request with an entity.

Summary

Public Methods
abstract boolean expectContinue()
Tells if this request should use the expect-continue handshake.
abstract HttpEntity getEntity()
abstract void setEntity( HttpEntity entity)
Hands the entity to the request.
[Expand]
Inherited Methods
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest

Public Methods

public abstract 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 abstract HttpEntity getEntity ()

Added in API level 1

public abstract void setEntity (HttpEntity entity)

Added in API level 1

Hands the entity to the request.

Parameters
entity the entity to send.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.