Package org.apache.http.impl.client
Class EntityEnclosingRequestWrapper
- java.lang.Object
-
- org.apache.http.message.AbstractHttpMessage
-
- org.apache.http.impl.client.RequestWrapper
-
- org.apache.http.impl.client.EntityEnclosingRequestWrapper
-
- All Implemented Interfaces:
HttpUriRequest
,HttpEntityEnclosingRequest
,HttpMessage
,HttpRequest
@Deprecated public class EntityEnclosingRequestWrapper extends RequestWrapper implements HttpEntityEnclosingRequest
Deprecated.(4.3) do not use.A wrapper class forHttpEntityEnclosingRequest
s 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.
- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class org.apache.http.impl.client.RequestWrapper
abort, getExecCount, getMethod, getOriginal, getProtocolVersion, getRequestLine, getURI, incrementExecCount, isAborted, resetHeaders, setMethod, setProtocolVersion, setURI
-
Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
EntityEnclosingRequestWrapper
public EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request) throws ProtocolException
Deprecated.- Throws:
ProtocolException
-
-
Method Detail
-
getEntity
public HttpEntity getEntity()
Deprecated.Description copied from interface:HttpEntityEnclosingRequest
Returns the entity associated with this request.- Specified by:
getEntity
in interfaceHttpEntityEnclosingRequest
- Returns:
- entity
-
setEntity
public void setEntity(HttpEntity entity)
Deprecated.Description copied from interface:HttpEntityEnclosingRequest
Associates the entity with this request.- Specified by:
setEntity
in interfaceHttpEntityEnclosingRequest
- Parameters:
entity
- the entity to send.
-
expectContinue
public boolean expectContinue()
Deprecated.Description copied from interface:HttpEntityEnclosingRequest
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.- Specified by:
expectContinue
in interfaceHttpEntityEnclosingRequest
- Returns:
- true if the expect continue handshake should be used, false if not.
-
isRepeatable
public boolean isRepeatable()
Deprecated.- Overrides:
isRepeatable
in classRequestWrapper
-
-