Package org.apache.http.client.methods
Class HttpEntityEnclosingRequestBase
- java.lang.Object
-
- org.apache.http.message.AbstractHttpMessage
-
- org.apache.http.client.methods.AbstractExecutionAwareRequest
-
- org.apache.http.client.methods.HttpRequestBase
-
- org.apache.http.client.methods.HttpEntityEnclosingRequestBase
-
- All Implemented Interfaces:
java.lang.Cloneable
,AbortableHttpRequest
,Configurable
,HttpExecutionAware
,HttpUriRequest
,HttpEntityEnclosingRequest
,HttpMessage
,HttpRequest
- Direct Known Subclasses:
BaseDavRequest
,HttpPatch
,HttpPost
,HttpPut
public abstract class HttpEntityEnclosingRequestBase extends HttpRequestBase implements HttpEntityEnclosingRequest
Basic implementation of an entity enclosing HTTP request that can be modified- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description HttpEntityEnclosingRequestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
boolean
expectContinue()
Tells if this request should use the expect-continue handshake.HttpEntity
getEntity()
Returns the entity associated with this request.void
setEntity(HttpEntity entity)
Associates the entity with this request.-
Methods inherited from class org.apache.http.client.methods.HttpRequestBase
getConfig, getMethod, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
-
Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest
abort, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
-
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, 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
-
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest
abort, isAborted
-
-
-
-
Method Detail
-
getEntity
public HttpEntity getEntity()
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)
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()
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.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classAbstractExecutionAwareRequest
- Throws:
java.lang.CloneNotSupportedException
-
-