@NotThreadSafe public class HttpPost extends HttpEntityEnclosingRequestBase
The HTTP POST method is defined in section 9.5 of RFC2616:
The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. POST is designed to allow a uniform method to cover the following functions:
- Annotation of existing resources
- Posting a message to a bulletin board, newsgroup, mailing list, or similar group of articles
- Providing a block of data, such as the result of submitting a form, to a data-handling process
- Extending a database through an append operation
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_NAME |
headergroup, params| Constructor and Description |
|---|
HttpPost() |
HttpPost(String uri) |
HttpPost(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMethod()
Returns the HTTP method this request uses, such as
GET,
PUT, POST, or other. |
clone, expectContinue, getEntity, setEntityabort, getProtocolVersion, getRequestLine, getURI, isAborted, releaseConnection, reset, setConnectionRequest, setReleaseTrigger, setURI, toStringaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRequestLineaddHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParamspublic static final String METHOD_NAME
public HttpPost()
public HttpPost(URI uri)
public HttpPost(String uri)
IllegalArgumentException - if the uri is invalid.public String getMethod()
HttpUriRequestGET,
PUT, POST, or other.getMethod in interface HttpUriRequestgetMethod in class HttpRequestBaseCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.