Top Description Fields Constructors Methods
org.apache.http.message

public Class BasicHttpEntityEnclosingRequest

extends BasicHttpRequest
implements HttpEntityEnclosingRequest
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpEntityEnclosingRequest, org.apache.http.HttpRequest, org.apache.http.HttpMessage
Imports
org.apache.http.Header, .HttpEntity, .HttpEntityEnclosingRequest, .ProtocolVersion, .RequestLine, org.apache.http.protocol.HTTP

Basic implementation of HttpEntityEnclosingRequest.
Since
4.0

Field Summary

Modifier and TypeField and Description
private HttpEntity

Constructor Summary

AccessConstructor and Description
public
public
BasicHttpEntityEnclosingRequest(final String method, final String uri, final ProtocolVersion ver)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
expectContinue()

Implements org.apache.http.HttpEntityEnclosingRequest.expectContinue.

Tells if this request should use the expect-continue handshake.
public HttpEntity
getEntity()

Implements org.apache.http.HttpEntityEnclosingRequest.getEntity.

Returns the entity associated with this request.
public void
setEntity(final HttpEntity
the entity to send.
entity
)

Implements org.apache.http.HttpEntityEnclosingRequest.setEntity.

Associates the entity with this request.
Inherited from org.apache.http.message.BasicHttpRequest:
getProtocolVersiongetRequestLinetoString

Field Detail

entityback to summary
private HttpEntity entity

Constructor Detail

BasicHttpEntityEnclosingRequestback to summary
public BasicHttpEntityEnclosingRequest(final String method, final String uri)
BasicHttpEntityEnclosingRequestback to summary
public BasicHttpEntityEnclosingRequest(final String method, final String uri, final ProtocolVersion ver)
BasicHttpEntityEnclosingRequestback to summary
public BasicHttpEntityEnclosingRequest(final RequestLine requestline)

Method Detail

expectContinueback to summary
public boolean expectContinue()

Implements org.apache.http.HttpEntityEnclosingRequest.expectContinue.

Doc from org.apache.http.HttpEntityEnclosingRequest.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.

Annotations
@Override
getEntityback to summary
public HttpEntity getEntity()

Implements org.apache.http.HttpEntityEnclosingRequest.getEntity.

Doc from org.apache.http.HttpEntityEnclosingRequest.getEntity.

Returns the entity associated with this request.

Returns:HttpEntity

entity

Annotations
@Override
setEntityback to summary
public void setEntity(final HttpEntity entity)

Implements org.apache.http.HttpEntityEnclosingRequest.setEntity.

Doc from org.apache.http.HttpEntityEnclosingRequest.setEntity.

Associates the entity with this request.

Parameters
entity:HttpEntity

the entity to send.

Annotations
@Override