Package org.apache.http
Interface HttpEntityEnclosingRequest
- All Superinterfaces:
HttpMessage
,HttpRequest
- All Known Implementing Classes:
BaseDavRequest
,BasicHttpEntityEnclosingRequest
,EntityEnclosingRequestWrapper
,HttpBind
,HttpCheckin
,HttpCheckout
,HttpCopy
,HttpDelete
,HttpEntityEnclosingRequestBase
,HttpLabel
,HttpLock
,HttpMerge
,HttpMkcol
,HttpMkworkspace
,HttpMove
,HttpOrderpatch
,HttpPatch
,HttpPoll
,HttpPost
,HttpPropfind
,HttpProppatch
,HttpPut
,HttpRebind
,HttpReport
,HttpSearch
,HttpSubscribe
,HttpUnbind
,HttpUnlock
,HttpUnsubscribe
,HttpUpdate
,HttpVersionControl
A request with an entity.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tells if this request should use the expect-continue handshake.Returns the entity associated with this request.void
setEntity
(HttpEntity entity) Associates the entity with this request.Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
Methods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
Method Details
-
expectContinue
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.
-
setEntity
Associates the entity with this request.- Parameters:
entity
- the entity to send.
-
getEntity
HttpEntity getEntity()Returns the entity associated with this request.- Returns:
- entity
-