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 HttpEntityEnclosingRequest.

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()
Returns the entity associated with this request.
void setEntity(HttpEntity entity)
Associates the entity with this 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 ()

Returns the entity associated with this request.

Returns
  • entity

public void setEntity (HttpEntity entity)

Associates the entity with this request.

Parameters
entity the entity to send.