org.apache.http
Interface HttpEntityEnclosingRequest
- All Superinterfaces:
- HttpMessage, HttpRequest
- All Known Implementing Classes:
- BasicHttpEntityEnclosingRequest
- public interface HttpEntityEnclosingRequest
- extends HttpRequest
A request with an entity.
- Since:
- 4.0
- Version:
- $Revision: 496070 $
- Author:
- Oleg Kalnichevski
Methods inherited from interface org.apache.http.HttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getHttpVersion, getLastHeader, getParams, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
expectContinue
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.
setEntity
public void setEntity(HttpEntity entity)
- Hands the entity to the request.
- Parameters:
entity
- the entity to send.
getEntity
public HttpEntity getEntity()
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.