public class HttpPost extends HttpUriRequestBase
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 |
abort, getConfig, isAborted, isCancelled, reset, setCancellable, setConfig, toStringgetEntity, setEntityaddHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setVersionaddHeader, clear, containsHeader, containsHeaders, getAllHeaders, getCondensedHeader, getFirstHeader, getHeaders, getLastHeader, getSingleHeader, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setSchemepublic static final String METHOD_NAME
public HttpPost(URI uri)
public HttpPost(String uri)
IllegalArgumentException - if the uri is invalid.Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.