Package 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
public abstract class HttpEntityEnclosingRequestBase extends HttpRequestBase implements HttpEntityEnclosingRequest
Basic implementation of an HTTP request that can be modified.
- Since:
- 4.0
- Version:
- $Revision: 674186 $
- Author:
- Oleg Kalnichevski
-
Field Summary
Fields inherited from class org.apache.http.message.AbstractHttpMessage
headergroup, params -
Constructor Summary
Constructors Constructor Description HttpEntityEnclosingRequestBase() -
Method Summary
Modifier and Type Method Description Objectclone()Creates and returns a copy of thisObject.booleanexpectContinue()Tells if this request should use the expect-continue handshake.HttpEntitygetEntity()voidsetEntity(HttpEntity entity)Hands the entity to the request.Methods inherited from class org.apache.http.client.methods.HttpRequestBase
abort, getMethod, getProtocolVersion, getRequestLine, getURI, isAborted, setConnectionRequest, setReleaseTrigger, setURIMethods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsMethods inherited from interface org.apache.http.HttpRequest
getRequestLine
-
Constructor Details
-
HttpEntityEnclosingRequestBase
public HttpEntityEnclosingRequestBase()
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceHttpEntityEnclosingRequest
-
setEntity
Description copied from interface:HttpEntityEnclosingRequestHands the entity to the request.- Specified by:
setEntityin interfaceHttpEntityEnclosingRequest- Parameters:
entity- the entity to send.
-
expectContinue
public boolean expectContinue()Description copied from interface:HttpEntityEnclosingRequestTells 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:
expectContinuein interfaceHttpEntityEnclosingRequest- Returns:
- true if the expect continue handshake should be used, false if not.
-
clone
Description copied from class:ObjectCreates and returns a copy of thisObject. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should callsuper.clone()to create the new instance and then create deep copies of the nested, mutable objects.- Overrides:
clonein classHttpRequestBase- Returns:
- a copy of this object.
- Throws:
CloneNotSupportedException- if this object's class does not implement theCloneableinterface.
-