org.apache.http.client.methods
Class HttpEntityEnclosingRequestBase
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.HttpRequestBase
org.apache.http.client.methods.HttpEntityEnclosingRequestBase
- All Implemented Interfaces:
- Cloneable, AbortableHttpRequest, HttpUriRequest, HttpEntityEnclosingRequest, HttpMessage, HttpRequest
- Direct Known Subclasses:
- HttpPost, HttpPut
public abstract class HttpEntityEnclosingRequestBase
- extends HttpRequestBase
- implements HttpEntityEnclosingRequest
Basic implementation of an HTTP request that can be modified.
- Since:
- 4.0
|
Method Summary |
Object |
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver. |
boolean |
expectContinue()
Tells if this request should use the expect-continue handshake. |
HttpEntity |
getEntity()
|
void |
setEntity(HttpEntity entity)
Hands the entity to the request. |
| 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 interface org.apache.http.HttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
HttpEntityEnclosingRequestBase
public HttpEntityEnclosingRequestBase()
getEntity
public HttpEntity getEntity()
- Specified by:
getEntity in interface HttpEntityEnclosingRequest
setEntity
public void setEntity(HttpEntity entity)
- Description copied from interface:
HttpEntityEnclosingRequest
- Hands the entity to the request.
- Specified by:
setEntity in interface HttpEntityEnclosingRequest
- Parameters:
entity - the entity to send.
expectContinue
public boolean expectContinue()
- 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 interface HttpEntityEnclosingRequest
- Returns:
- true if the expect continue handshake should be used, false if
not.
clone
public Object clone()
throws CloneNotSupportedException
- Description copied from class:
Object
- Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
- Overrides:
clone in class HttpRequestBase
- Returns:
- Object a shallow copy of this object.
- Throws:
CloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.
Please submit a feedback, bug or feature