Package org.apache.http.message
Class BasicHttpEntityEnclosingRequest
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.message.BasicHttpRequest
org.apache.http.message.BasicHttpEntityEnclosingRequest
- All Implemented Interfaces:
HttpEntityEnclosingRequest,HttpMessage,HttpRequest
public class BasicHttpEntityEnclosingRequest
extends BasicHttpRequest
implements HttpEntityEnclosingRequest
Basic implementation of
HttpEntityEnclosingRequest.- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionBasicHttpEntityEnclosingRequest(String method, String uri) BasicHttpEntityEnclosingRequest(String method, String uri, ProtocolVersion ver) BasicHttpEntityEnclosingRequest(RequestLine requestline) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells if this request should use the expect-continue handshake.Returns the entity associated with this request.voidsetEntity(HttpEntity entity) Associates the entity with this request.Methods inherited from class org.apache.http.message.BasicHttpRequest
getProtocolVersion, getRequestLine, toStringMethods 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, getClass, hashCode, notify, notifyAll, 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
-
BasicHttpEntityEnclosingRequest
-
BasicHttpEntityEnclosingRequest
-
BasicHttpEntityEnclosingRequest
-
-
Method Details
-
getEntity
Description copied from interface:HttpEntityEnclosingRequestReturns the entity associated with this request.- Specified by:
getEntityin interfaceHttpEntityEnclosingRequest- Returns:
- entity
-
setEntity
Description copied from interface:HttpEntityEnclosingRequestAssociates the entity with this 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.
-