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

Since: 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 ()

Since: API Level 1

public abstract void setEntity (HttpEntity entity)

Since: API Level 1

Hands the entity to the request.

Parameters
entity the entity to send.