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)

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

public BasicHttpEntityEnclosingRequest (RequestLine requestline)

Public Methods

public boolean expectContinue ()

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

public void setEntity (HttpEntity entity)

Hands the entity to the request.

Parameters
entity the entity to send.