@Deprecated @NotThreadSafe public class EntityEnclosingRequestWrapper extends RequestWrapper implements HttpEntityEnclosingRequest
HttpEntityEnclosingRequests that can
be used to change properties of the current request without
modifying the original object.
This class is also capable of resetting the request headers to the state of the original request.
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
EntityEnclosingRequestWrapper.EntityWrapper
Deprecated.
|
headergroup, params| Constructor and Description |
|---|
EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
expectContinue()
Deprecated.
Tells if this request should use the expect-continue handshake.
|
HttpEntity |
getEntity()
Deprecated.
Returns the entity associated with this request.
|
boolean |
isRepeatable()
Deprecated.
|
void |
setEntity(HttpEntity entity)
Deprecated.
Associates the entity with this request.
|
abort, getExecCount, getMethod, getOriginal, getProtocolVersion, getRequestLine, getURI, incrementExecCount, isAborted, resetHeaders, setMethod, setProtocolVersion, setURIaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequestLineaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamspublic EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request) throws ProtocolException
ProtocolExceptionpublic HttpEntity getEntity()
HttpEntityEnclosingRequestgetEntity in interface HttpEntityEnclosingRequestpublic void setEntity(HttpEntity entity)
HttpEntityEnclosingRequestsetEntity in interface HttpEntityEnclosingRequestentity - the entity to send.public boolean expectContinue()
HttpEntityEnclosingRequestexpectContinue in interface HttpEntityEnclosingRequestpublic boolean isRepeatable()
isRepeatable in class RequestWrapper