Top Description Methods
org.apache.http

public Interface HttpEntityEnclosingRequest

extends HttpRequest
Known Direct Implementers
org.apache.http.message.BasicHttpEntityEnclosingRequest

A request with an entity.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the expect continue handshake should be used, false if not.
expectContinue
()

Tells if this request should use the expect-continue handshake.

public HttpEntity

Returns:

entity
getEntity
()

Returns the entity associated with this request.

public void
setEntity(HttpEntity
the entity to send.
entity
)

Associates the entity with this request.

Inherited from org.apache.http.HttpRequest:
getRequestLine

Method Detail

expectContinueback to summary
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:boolean

true if the expect continue handshake should be used, false if not.

getEntityback to summary
public HttpEntity getEntity()

Returns the entity associated with this request.

Returns:HttpEntity

entity

setEntityback to summary
public void setEntity(HttpEntity entity)

Associates the entity with this request.

Parameters
entity:HttpEntity

the entity to send.