to top
Android APIs
public class

BasicHttpEntityEnclosingRequest

extends BasicHttpRequest
implements HttpEntityEnclosingRequest
java.lang.Object
   ↳ org.apache.http.message.AbstractHttpMessage
     ↳ org.apache.http.message.BasicHttpRequest
       ↳ org.apache.http.message.BasicHttpEntityEnclosingRequest

Class Overview

Basic implementation of a request with an entity that can be modified.

Summary

[Expand]
Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
BasicHttpEntityEnclosingRequest(String method, String uri)
BasicHttpEntityEnclosingRequest(String method, String uri, ProtocolVersion ver)
BasicHttpEntityEnclosingRequest(RequestLine requestline)
Public Methods
boolean expectContinue()
Tells if this request should use the expect-continue handshake.
HttpEntity getEntity()
void setEntity(HttpEntity entity)
Hands the entity to the request.
[Expand]
Inherited Methods
From class org.apache.http.message.BasicHttpRequest
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

Public Constructors

public BasicHttpEntityEnclosingRequest (String method, String uri)

Since: API Level 1

public BasicHttpEntityEnclosingRequest (String method, String uri, ProtocolVersion ver)

Since: API Level 1

public BasicHttpEntityEnclosingRequest (RequestLine requestline)

Since: API Level 1

Public Methods

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

Since: API Level 1

public void setEntity (HttpEntity entity)

Since: API Level 1

Hands the entity to the request.

Parameters
entity the entity to send.